go fmt + import reordering

This commit is contained in:
Adin Schmahmann 2020-03-24 03:07:31 -04:00
parent a21162d55c
commit f9a79c5ca8
2 changed files with 5 additions and 4 deletions

View File

@ -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.

View File

@ -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"