From 0e696f0e0a968474780957442fd5d605c3ed61fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Tue, 3 Mar 2020 19:00:33 +0800 Subject: [PATCH] Format. --- pkg/transport-discovery/client/client.go | 2 -- pkg/transport/managed_transport.go | 1 + pkg/visor/rpc_client.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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 }