Skip to content

Commit

Permalink
Make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vikulin committed Dec 21, 2023
1 parent da8de49 commit 9e34a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (p *protoHandler) getPeersHandler(in json.RawMessage) (interface{}, error)
return nil, err
}

key := req.Key.Key // nolint:unused
key := req.Key.Key //nolint:all
ch := make(chan []byte, 1)
p.sendGetPeersRequest(types.Addr(req.Key), func(info []byte) {
ch <- info
Expand Down Expand Up @@ -328,7 +328,7 @@ func (p *protoHandler) getDHTHandler(in json.RawMessage) (interface{}, error) {
if err := json.Unmarshal(in, &req); err != nil {
return nil, err
}
key := req.Key.Key // nolint:unused
key := req.Key.Key //nolint:all
ch := make(chan []byte, 1)
p.sendGetDHTRequest(types.Addr(req.Key), func(info []byte) {
ch <- info
Expand Down

0 comments on commit 9e34a03

Please sign in to comment.