Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Jan 22, 2020
1 parent 694477a commit 1c61da3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ package config
import (
"context"
"fmt"
coreit "github.com/libp2p/go-libp2p-core/introspection"
"github.com/libp2p/go-libp2p-introspection/pkg/introspection"

"github.com/libp2p/go-libp2p-core/connmgr"
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/host"
coreit "github.com/libp2p/go-libp2p-core/introspection"
"github.com/libp2p/go-libp2p-core/metrics"
"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/pnet"
"github.com/libp2p/go-libp2p-core/routing"

"github.com/libp2p/go-libp2p-introspection/pkg/introspection"
bhost "github.com/libp2p/go-libp2p/p2p/host/basic"
relay "github.com/libp2p/go-libp2p/p2p/host/relay"
routed "github.com/libp2p/go-libp2p/p2p/host/routed"
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,4 @@ func UserAgent(userAgent string) Option {
cfg.UserAgent = userAgent
return nil
}
}
}
8 changes: 4 additions & 4 deletions p2p/host/basic/basic_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/libp2p/go-libp2p-core/connmgr"
"github.com/libp2p/go-libp2p-core/event"
"github.com/libp2p/go-libp2p-core/host"
corein "github.com/libp2p/go-libp2p-core/introspection"
coreit "github.com/libp2p/go-libp2p-core/introspection"
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/peerstore"
Expand Down Expand Up @@ -92,7 +92,7 @@ type BasicHost struct {
}

// introspector is the host introspector used to register subsystem metric providers & fetch the current system state when asked
introspector corein.Introspector
introspector coreit.Introspector
}

var _ host.Host = (*BasicHost)(nil)
Expand Down Expand Up @@ -130,7 +130,7 @@ type HostOpts struct {
UserAgent string

// Introspector is used by host subsystems to register themselves as metrics providers.
Introspector corein.Introspector
Introspector coreit.Introspector
}

// NewHost constructs a new *BasicHost and activates it by attaching its stream and connection handlers to the given inet.Network.
Expand Down Expand Up @@ -797,7 +797,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr {

// RegisterProvider allows the host to be an introspector. Please look at the docs for the Introspector
// interface in go-libp2p-core for more details.
func (h *BasicHost) RegisterProvider(p *corein.ProvidersTree) error {
func (h *BasicHost) RegisterProvider(p *coreit.ProvidersTree) error {
return h.introspector.RegisterProviders(p)
}

Expand Down

0 comments on commit 1c61da3

Please sign in to comment.