diff --git a/pkg/transport-discovery/client/client.go b/pkg/transport-discovery/client/client.go index db4a5c50e3..6748bf7558 100644 --- a/pkg/transport-discovery/client/client.go +++ b/pkg/transport-discovery/client/client.go @@ -19,8 +19,6 @@ import ( var log = logging.MustGetLogger("transport-discovery") - - // JSONError is the object returned to the client when there's an error. type JSONError struct { Error string `json:"error"` diff --git a/pkg/transport/managed_transport.go b/pkg/transport/managed_transport.go index 6b8ca918d5..c22df80a87 100644 --- a/pkg/transport/managed_transport.go +++ b/pkg/transport/managed_transport.go @@ -13,6 +13,7 @@ import ( "github.com/SkycoinProject/dmsg/httputil" "github.com/SkycoinProject/dmsg/netutil" + "github.com/SkycoinProject/skywire-mainnet/internal/skyenv" "github.com/SkycoinProject/skywire-mainnet/pkg/routing" "github.com/SkycoinProject/skywire-mainnet/pkg/snet" diff --git a/pkg/visor/rpc_client.go b/pkg/visor/rpc_client.go index 8eb813b883..6851f0afeb 100644 --- a/pkg/visor/rpc_client.go +++ b/pkg/visor/rpc_client.go @@ -208,7 +208,7 @@ func (rc *rpcClient) DiscoverTransportByID(id uuid.UUID) (*transport.EntryWithSt // RoutingRules calls RoutingRules. func (rc *rpcClient) RoutingRules() ([]routing.Rule, error) { - entries := make([]routing.Rule, 0) + entries := make([]routing.Rule, 0) err := rc.Call("RoutingRules", &struct{}{}, &entries) return entries, err }