Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Apr 3, 2024
1 parent ca83cc4 commit aedf2ae
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 23 deletions.
14 changes: 7 additions & 7 deletions cmd/uptime-tracker/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ import (
"github.com/skycoin/dmsg/pkg/direct"
"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/dmsg/pkg/dmsghttp"
"github.com/skycoin/skywire-services/internal/pg"
"github.com/skycoin/skywire-services/internal/utmetrics"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/api"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/store"
"github.com/spf13/cobra"
"gorm.io/gorm"

"github.com/skycoin/skywire-utilities/pkg/buildinfo"
"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire-utilities/pkg/cmdutil"
Expand All @@ -28,6 +21,13 @@ import (
"github.com/skycoin/skywire-utilities/pkg/metricsutil"
"github.com/skycoin/skywire-utilities/pkg/storeconfig"
"github.com/skycoin/skywire-utilities/pkg/tcpproxy"
"github.com/spf13/cobra"
"gorm.io/gorm"

"github.com/skycoin/skywire-services/internal/pg"
"github.com/skycoin/skywire-services/internal/utmetrics"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/api"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/store"
)

const (
Expand Down
1 change: 0 additions & 1 deletion internal/skysocks/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/hashicorp/yamux"
ipc "github.com/james-barrow/golang-ipc"

"github.com/skycoin/skywire/pkg/app"
"github.com/skycoin/skywire/pkg/router"
"github.com/skycoin/skywire/pkg/skyenv"
Expand Down
1 change: 0 additions & 1 deletion internal/skysocks/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"

ipc "github.com/james-barrow/golang-ipc"

"github.com/skycoin/skywire/pkg/skyenv"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/uptime-tracker/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import (
"github.com/go-echarts/go-echarts/v2/charts"
"github.com/go-echarts/go-echarts/v2/opts"
"github.com/sirupsen/logrus"
"github.com/skycoin/skywire-services/internal/utmetrics"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/store"

"github.com/skycoin/skywire-utilities/pkg/buildinfo"
"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire-utilities/pkg/geo"
Expand All @@ -32,6 +29,9 @@ import (
"github.com/skycoin/skywire-utilities/pkg/logging"
"github.com/skycoin/skywire-utilities/pkg/metricsutil"
"github.com/skycoin/skywire-utilities/pkg/netutil"

"github.com/skycoin/skywire-services/internal/utmetrics"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/store"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions pkg/uptime-tracker/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import (
"net/http/httptest"
"testing"

"github.com/skycoin/skywire-services/internal/utmetrics"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/store"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire-utilities/pkg/geo"
"github.com/skycoin/skywire-utilities/pkg/httpauth"
"github.com/skycoin/skywire-utilities/pkg/storeconfig"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/skycoin/skywire-services/internal/utmetrics"
"github.com/skycoin/skywire-services/pkg/uptime-tracker/store"
)

var testPubKey, testSec = cipher.GenerateKeyPair()
Expand Down
3 changes: 1 addition & 2 deletions pkg/uptime-tracker/store/memory_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import (
"testing"
"time"

"github.com/stretchr/testify/require"

"github.com/skycoin/skywire-utilities/pkg/cipher"
"github.com/skycoin/skywire-utilities/pkg/geo"
"github.com/stretchr/testify/require"
)

func TestMemory(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/uptime-tracker/store/postgres_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"sync"
"time"

"gorm.io/gorm"

"github.com/skycoin/skywire-utilities/pkg/geo"
"github.com/skycoin/skywire-utilities/pkg/logging"
"gorm.io/gorm"
)

type postgresStore struct {
Expand Down
3 changes: 1 addition & 2 deletions pkg/uptime-tracker/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package store
import (
"time"

"gorm.io/gorm"

"github.com/skycoin/skywire-utilities/pkg/geo"
"github.com/skycoin/skywire-utilities/pkg/logging"
"gorm.io/gorm"
)

const (
Expand Down

0 comments on commit aedf2ae

Please sign in to comment.