mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-04-24 14:22:13 +00:00
go fmt + import reordering
This commit is contained in:
parent
a21162d55c
commit
f9a79c5ca8
5
query.go
5
query.go
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/libp2p/go-libp2p-core/network"
|
||||
"github.com/libp2p/go-libp2p-core/peer"
|
||||
pstore "github.com/libp2p/go-libp2p-core/peerstore"
|
||||
@ -50,8 +51,8 @@ type query struct {
|
||||
}
|
||||
|
||||
type lookupWithFollowupResult struct {
|
||||
peers []peer.ID // the top K not unreachable peers across all query paths
|
||||
state []qpeerset.PeerState // the peer states at the end of the queries
|
||||
peers []peer.ID // the top K not unreachable peers across all query paths
|
||||
state []qpeerset.PeerState // the peer states at the end of the queries
|
||||
|
||||
// indicates that neither the lookup nor the followup has been prematurely terminated by an external condition such
|
||||
// as context cancellation or the stop function being called.
|
||||
|
@ -4,11 +4,10 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/libp2p/go-libp2p-core/network"
|
||||
"github.com/libp2p/go-libp2p-kad-dht/qpeerset"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/libp2p/go-libp2p-core/network"
|
||||
"github.com/libp2p/go-libp2p-core/peer"
|
||||
"github.com/libp2p/go-libp2p-core/peerstore"
|
||||
"github.com/libp2p/go-libp2p-core/routing"
|
||||
@ -17,6 +16,7 @@ import (
|
||||
u "github.com/ipfs/go-ipfs-util"
|
||||
logging "github.com/ipfs/go-log"
|
||||
pb "github.com/libp2p/go-libp2p-kad-dht/pb"
|
||||
"github.com/libp2p/go-libp2p-kad-dht/qpeerset"
|
||||
kb "github.com/libp2p/go-libp2p-kbucket"
|
||||
record "github.com/libp2p/go-libp2p-record"
|
||||
"github.com/multiformats/go-multihash"
|
||||
|
Loading…
x
Reference in New Issue
Block a user