mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 20:42:41 +08:00
chore: avoid aliasing imports in services (#22499)
This commit is contained in:
@ -5,7 +5,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana/pkg/bus"
|
||||
m "github.com/grafana/grafana/pkg/models"
|
||||
"github.com/grafana/grafana/pkg/models"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -18,7 +18,7 @@ func sqlRandomWalk(m1 string, m2 string, intWalker int64, floatWalker float64, s
|
||||
now := time.Now().UTC()
|
||||
step := time.Minute
|
||||
|
||||
row := &m.SqlTestData{
|
||||
row := &models.SqlTestData{
|
||||
Metric1: m1,
|
||||
Metric2: m2,
|
||||
TimeEpoch: timeWalker.Unix(),
|
||||
@ -44,7 +44,7 @@ func sqlRandomWalk(m1 string, m2 string, intWalker int64, floatWalker float64, s
|
||||
return nil
|
||||
}
|
||||
|
||||
func InsertSqlTestData(cmd *m.InsertSqlTestDataCommand) error {
|
||||
func InsertSqlTestData(cmd *models.InsertSqlTestDataCommand) error {
|
||||
return inTransaction(func(sess *DBSession) error {
|
||||
var err error
|
||||
|
||||
|
Reference in New Issue
Block a user