Skip to content

Commit 0a9235c

Browse files
committed
chore(imports): reorganize import statements in client.go and main.go
1 parent c1a7bd1 commit 0a9235c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919
"testing"
2020
"time"
2121

22+
ds "github.com/ipfs/go-datastore"
23+
dssync "github.com/ipfs/go-datastore/sync"
2224
"github.com/libp2p/go-libp2p"
2325
dht "github.com/libp2p/go-libp2p-kad-dht"
2426
"github.com/libp2p/go-libp2p-kad-dht/records"
@@ -32,9 +34,6 @@ import (
3234
"github.com/libp2p/go-libp2p/p2p/net/conngater"
3335
"github.com/multiformats/go-multiaddr"
3436
manet "github.com/multiformats/go-multiaddr/net"
35-
36-
ds "github.com/ipfs/go-datastore"
37-
dssync "github.com/ipfs/go-datastore/sync"
3837
)
3938

4039
var (
@@ -391,7 +390,7 @@ func parsePeerMultiaddrs(peerConfigs []string, peerType string, log logger) []pe
391390
}
392391

393392
// selectRelayPeers determines which peers to use as relays
394-
func selectRelayPeers(customRelayPeers []peer.AddrInfo, bootstrapPeers []peer.AddrInfo, log logger) []peer.AddrInfo {
393+
func selectRelayPeers(customRelayPeers, bootstrapPeers []peer.AddrInfo, log logger) []peer.AddrInfo {
395394
if len(customRelayPeers) > 0 {
396395
log.Infof("Using %d custom relay peer(s)", len(customRelayPeers))
397396
return customRelayPeers

cmd/example/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import (
1212
"syscall"
1313
"time"
1414

15-
p2p "github.com/bsv-blockchain/go-p2p-message-bus"
1615
"github.com/libp2p/go-libp2p/core/crypto"
16+
17+
p2p "github.com/bsv-blockchain/go-p2p-message-bus"
1718
)
1819

1920
func main() {

0 commit comments

Comments
 (0)