Skip to content

Commit

Permalink
ci: gofmt sources (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Apr 17, 2023
1 parent 5235808 commit 1ea814a
Show file tree
Hide file tree
Showing 30 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions bidengine/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tendermint/tendermint/libs/log"

"github.com/akash-network/node/pubsub"
metricsutils "github.com/akash-network/node/util/metrics"
"github.com/akash-network/node/util/runner"
atypes "github.com/akash-network/akash-api/go/node/audit/v1beta3"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/pubsub"
metricsutils "github.com/akash-network/node/util/metrics"
"github.com/akash-network/node/util/runner"

"github.com/akash-network/provider/cluster"
ctypes "github.com/akash-network/provider/cluster/types/v1beta3"
Expand Down
4 changes: 2 additions & 2 deletions bidengine/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import (

"github.com/stretchr/testify/require"

audittypes "github.com/akash-network/akash-api/go/node/audit/v1beta3"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
ptypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"
atypes "github.com/akash-network/akash-api/go/node/types/v1beta3"
broadcastmocks "github.com/akash-network/node/client/broadcaster/mocks"
clientmocks "github.com/akash-network/node/client/mocks"
"github.com/akash-network/node/pubsub"
"github.com/akash-network/node/testutil"
audittypes "github.com/akash-network/akash-api/go/node/audit/v1beta3"
ptypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"

clustermocks "github.com/akash-network/provider/cluster/mocks"
"github.com/akash-network/provider/session"
Expand Down
6 changes: 3 additions & 3 deletions bidengine/pricing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
"github.com/shopspring/decimal"
"github.com/stretchr/testify/require"

"github.com/akash-network/node/sdl"
"github.com/akash-network/node/testutil"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
"github.com/akash-network/akash-api/go/node/types/unit"
atypes "github.com/akash-network/akash-api/go/node/types/v1beta3"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
"github.com/akash-network/node/sdl"
"github.com/akash-network/node/testutil"
)

func Test_ScalePricingRejectsAllZero(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bidengine/provider_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (

"github.com/akash-network/provider/session"

types "github.com/akash-network/akash-api/go/node/types/v1beta3"
atypes "github.com/akash-network/akash-api/go/node/audit/v1beta3"
ptypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"
types "github.com/akash-network/akash-api/go/node/types/v1beta3"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion bidengine/provider_attributes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (

"github.com/akash-network/provider/session"

akashtypes "github.com/akash-network/akash-api/go/node/types/v1beta3"
atypes "github.com/akash-network/akash-api/go/node/audit/v1beta3"
ptypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"
akashtypes "github.com/akash-network/akash-api/go/node/types/v1beta3"
)

type providerAttributesTestScaffold struct {
Expand Down
2 changes: 1 addition & 1 deletion bidengine/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

sdkquery "github.com/cosmos/cosmos-sdk/types/query"

mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/pubsub"
mquery "github.com/akash-network/node/x/market/query"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"

"github.com/akash-network/provider/cluster"
"github.com/akash-network/provider/operator/waiter"
Expand Down
2 changes: 1 addition & 1 deletion cluster/kube/builder/netpol.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"

manitypes "github.com/akash-network/akash-api/go/manifest/v2beta2"
sdlutil "github.com/akash-network/node/sdl/util"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
sdlutil "github.com/akash-network/node/sdl/util"
)

type NetPol interface {
Expand Down
2 changes: 1 addition & 1 deletion cluster/kube/builder/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"

manitypes "github.com/akash-network/akash-api/go/manifest/v2beta2"
sdlutil "github.com/akash-network/node/sdl/util"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
sdlutil "github.com/akash-network/node/sdl/util"
)

type Service interface {
Expand Down
2 changes: 1 addition & 1 deletion cluster/kube/builder/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

maniv2beta1 "github.com/akash-network/akash-api/go/manifest/v2beta2"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/sdl"
sdlutil "github.com/akash-network/node/sdl/util"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
)

type workloadBase interface {
Expand Down
2 changes: 1 addition & 1 deletion cluster/kube/client_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
kubefake "k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/rest"

mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/sdl"
"github.com/akash-network/node/testutil"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"

"github.com/akash-network/provider/cluster"
"github.com/akash-network/provider/cluster/kube/builder"
Expand Down
2 changes: 1 addition & 1 deletion cluster/kube/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
sdk "github.com/cosmos/cosmos-sdk/types"

mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/sdl"
"github.com/akash-network/node/testutil"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"

"github.com/akash-network/provider/cluster/kube/builder"
)
Expand Down
2 changes: 1 addition & 1 deletion cluster/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/tendermint/tendermint/libs/log"

manifest "github.com/akash-network/akash-api/go/manifest/v2beta2"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/pubsub"
"github.com/akash-network/node/util/runner"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"

"github.com/akash-network/provider/cluster/util"
"github.com/akash-network/provider/event"
Expand Down
2 changes: 1 addition & 1 deletion cluster/types/v1beta2/reservation.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package v1beta2

import (
atypes "github.com/akash-network/akash-api/go/node/types/v1beta2"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta2"
atypes "github.com/akash-network/akash-api/go/node/types/v1beta2"
)

// Reservation interface implements orders and resources
Expand Down
2 changes: 1 addition & 1 deletion cluster/types/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
eventsv1 "k8s.io/api/events/v1"

manifest "github.com/akash-network/akash-api/go/manifest/v2beta1"
types "github.com/akash-network/akash-api/go/node/types/v1beta2"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta2"
types "github.com/akash-network/akash-api/go/node/types/v1beta2"

"github.com/akash-network/node/sdl"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/provider-services/cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"

"github.com/akash-network/node/app"
akashclient "github.com/akash-network/node/client"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/app"
akashclient "github.com/akash-network/node/client"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/provider-services/cmd/leaseEvents.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
akashclient "github.com/akash-network/node/client"
cmdcommon "github.com/akash-network/node/cmd/common"
cutils "github.com/akash-network/node/x/cert/utils"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"

cltypes "github.com/akash-network/provider/cluster/types/v1beta3"
gwrest "github.com/akash-network/provider/gateway/rest"
Expand Down
4 changes: 2 additions & 2 deletions cmd/provider-services/cmd/leaseLogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
akashclient "github.com/akash-network/node/client"
cmdcommon "github.com/akash-network/node/cmd/common"
cutils "github.com/akash-network/node/x/cert/utils"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"

gwrest "github.com/akash-network/provider/gateway/rest"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/provider-services/cmd/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
sdkclient "github.com/cosmos/cosmos-sdk/client"
sdk "github.com/cosmos/cosmos-sdk/types"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
akashclient "github.com/akash-network/node/client"
"github.com/akash-network/node/sdl"
cutils "github.com/akash-network/node/x/cert/utils"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"

gwrest "github.com/akash-network/provider/gateway/rest"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/provider-services/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
tmcli "github.com/tendermint/tendermint/libs/cli"

"github.com/akash-network/akash-api/go/sdkutil"
"github.com/akash-network/node/app"
acmd "github.com/akash-network/node/cmd/akash/cmd"
ecmd "github.com/akash-network/node/events/cmd"
"github.com/akash-network/akash-api/go/sdkutil"

"github.com/akash-network/provider/operator"
"github.com/akash-network/provider/operator/hostnameoperator"
Expand Down
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

types "github.com/akash-network/akash-api/go/node/types/v1beta3"
"github.com/akash-network/akash-api/go/node/types/constants"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/akash-api/go/node/types/constants"
types "github.com/akash-network/akash-api/go/node/types/v1beta3"

"github.com/akash-network/provider/bidengine"
)
Expand Down
2 changes: 1 addition & 1 deletion gateway/rest/client_shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/gorilla/websocket"
"k8s.io/client-go/tools/remotecommand"

"github.com/akash-network/node/util/wsutil"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/util/wsutil"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions gateway/rest/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

qmock "github.com/akash-network/node/client/mocks"
akashmanifest "github.com/akash-network/akash-api/go/manifest/v2beta2"
"github.com/akash-network/node/testutil"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
providertypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"
qmock "github.com/akash-network/node/client/mocks"
"github.com/akash-network/node/testutil"

"github.com/akash-network/provider"
pcmock "github.com/akash-network/provider/cluster/mocks"
Expand Down
2 changes: 1 addition & 1 deletion gateway/rest/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/tendermint/tendermint/libs/log"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mquery "github.com/akash-network/node/x/market/query"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
mquery "github.com/akash-network/node/x/market/query"
)

type contextKey int
Expand Down
2 changes: 1 addition & 1 deletion gateway/rest/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (
"github.com/tendermint/tendermint/libs/log"

manifest "github.com/akash-network/akash-api/go/manifest/v2beta2"
"github.com/akash-network/node/util/wsutil"
manifestValidation "github.com/akash-network/akash-api/go/manifest/v2beta2"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/util/wsutil"

"github.com/akash-network/provider"
"github.com/akash-network/provider/cluster"
Expand Down
2 changes: 1 addition & 1 deletion gateway/rest/router_migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"

"github.com/akash-network/node/testutil"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/testutil"

crd "github.com/akash-network/provider/pkg/apis/akash.network/v2beta2"
)
Expand Down
6 changes: 3 additions & 3 deletions manifest/watchdog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

broadcastmocks "github.com/akash-network/node/client/broadcaster/mocks"
clientmocks "github.com/akash-network/node/client/mocks"
"github.com/akash-network/node/testutil"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
types "github.com/akash-network/akash-api/go/node/market/v1beta3"
ptypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"
broadcastmocks "github.com/akash-network/node/client/broadcaster/mocks"
clientmocks "github.com/akash-network/node/client/mocks"
"github.com/akash-network/node/testutil"

"github.com/akash-network/provider/session"
)
Expand Down
2 changes: 1 addition & 1 deletion operator/hostnameoperator/hostname_operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"

"github.com/akash-network/node/testutil"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/testutil"

"github.com/akash-network/provider/cluster/mocks"
cluster "github.com/akash-network/provider/cluster/types/v1beta3"
Expand Down
2 changes: 1 addition & 1 deletion operator/ipoperator/ip_operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"

manifest "github.com/akash-network/akash-api/go/manifest/v2beta2"
"github.com/akash-network/node/testutil"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
"github.com/akash-network/node/testutil"

"github.com/akash-network/provider/cluster/mocks"
"github.com/akash-network/provider/cluster/types/v1beta3"
Expand Down
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package session
import (
"github.com/tendermint/tendermint/libs/log"

"github.com/akash-network/node/client"
ptypes "github.com/akash-network/akash-api/go/node/provider/v1beta3"
"github.com/akash-network/node/client"
)

// Session interface wraps Log, Client, Provider and ForModule methods
Expand Down
2 changes: 1 addition & 1 deletion testutil/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
tmcli "github.com/tendermint/tendermint/libs/cli"

testutilcli "github.com/akash-network/node/testutil/cli"
mtypes "github.com/akash-network/akash-api/go/node/market/v1beta3"
testutilcli "github.com/akash-network/node/testutil/cli"

pcmd "github.com/akash-network/provider/cmd/provider-services/cmd"
providerflags "github.com/akash-network/provider/cmd/provider-services/cmd/flags"
Expand Down

0 comments on commit 1ea814a

Please sign in to comment.