Skip to content

Commit

Permalink
fix: deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Dec 30, 2021
1 parent 792c3fd commit 3cb5e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/grpc/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ type testDiscovery struct {
addr peer.AddrInfo
}

func (t *testDiscovery) Advertise(ctx context.Context, ns string, opts ...discovery.Option) (time.Duration, error) {
func (t *testDiscovery) Advertise(_ context.Context, ns string, _ ...discovery.Option) (time.Duration, error) {
t.adv <- ns
return time.Second, nil
}

func (t *testDiscovery) FindPeers(ctx context.Context, ns string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) {
func (t *testDiscovery) FindPeers(_ context.Context, _ string, _ ...discovery.Option) (<-chan peer.AddrInfo, error) {
res := make(chan peer.AddrInfo)
go func() {
res <- t.addr
Expand Down
4 changes: 0 additions & 4 deletions modules/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ func (s *impl) Client(ctx context.Context, name string, opts ...grpc.DialOption)
return nil, err
}

func (s *impl) Get(ctx context.Context, svc string, opts ...grpc.DialOption) (*grpc.ClientConn, error) {
return nil, errors.New("client service not configured")
}

func (s *impl) HTTP() (core.HTTP, error) {
if s.dp.Mx == nil {
return nil, errors.New("HTTP service not configured")
Expand Down

0 comments on commit 3cb5e92

Please sign in to comment.