Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
fix: imports were not gci compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Aug 23, 2023
1 parent 7cbed14 commit 8c5a038
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions chainstate/broadcast_providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"errors"
"fmt"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"strings"

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/mrz1836/go-nownodes"
"github.com/tonicpow/go-minercraft/v2"
)
Expand Down Expand Up @@ -177,7 +177,7 @@ func broadcastWithBroadcastClient(ctx context.Context, client ClientInterface, t
result, err := client.BroadcastClient().SubmitTransaction(ctx, &tx)
if err != nil {
debugLog(client, txID, "error broadcast request for "+ProviderBroadcastClient+" failed: "+err.Error())
return nil
return nil //nolint:nilerr // err is being reported but not returned
}

debugLog(client, txID, "result broadcast request for "+ProviderBroadcastClient+" blockhash: "+result.BlockHash+" status: "+result.TxStatus.String())
Expand Down
4 changes: 2 additions & 2 deletions chainstate/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package chainstate
import (
"context"
"fmt"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcastClient "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
"sync"
"time"

"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcastClient "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
"github.com/libsv/go-bt/v2"
zLogger "github.com/mrz1836/go-logger"
"github.com/mrz1836/go-nownodes"
Expand Down
4 changes: 2 additions & 2 deletions chainstate/client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package chainstate

import (
"context"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcastClient "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
"time"

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcastClient "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
zLogger "github.com/mrz1836/go-logger"
"github.com/mrz1836/go-nownodes"
"github.com/mrz1836/go-whatsonchain"
Expand Down
2 changes: 1 addition & 1 deletion chainstate/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package chainstate

import (
"context"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"net/http"
"time"

"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/centrifugal/centrifuge-go"
"github.com/libsv/go-bc"
"github.com/mrz1836/go-nownodes"
Expand Down
6 changes: 3 additions & 3 deletions client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package bux
import (
"context"
"database/sql"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcast_client "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
"net/http"
"strings"
"time"
Expand All @@ -13,6 +11,8 @@ import (
"github.com/BuxOrg/bux/cluster"
"github.com/BuxOrg/bux/notifications"
"github.com/BuxOrg/bux/taskmanager"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcastclient "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
"github.com/coocood/freecache"
"github.com/go-redis/redis/v8"
"github.com/mrz1836/go-cache"
Expand Down Expand Up @@ -755,7 +755,7 @@ func WithBroadcastClient(broadcastClient broadcast.Client) ClientOps {
}

// WithBroadcastClientAPIs will set broadcast client APIs
func WithBroadcastClientAPIs(apis []broadcast_client.ArcClientConfig) ClientOps {
func WithBroadcastClientAPIs(apis []broadcastclient.ArcClientConfig) ClientOps {
return func(c *clientOptions) {
c.chainstate.options = append(c.chainstate.options, chainstate.WithBroadcastClientAPIs(apis))
}
Expand Down
2 changes: 1 addition & 1 deletion mock_chainstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package bux

import (
"context"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"time"

"github.com/BuxOrg/bux/chainstate"
"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/mrz1836/go-nownodes"
"github.com/mrz1836/go-whatsonchain"
"github.com/tonicpow/go-minercraft/v2"
Expand Down

0 comments on commit 8c5a038

Please sign in to comment.