Skip to content

Commit

Permalink
chore: ignore rules for deprecated elements
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Nov 8, 2023
1 parent 28c3392 commit 1a92f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func findProviders(ctx context.Context, key cid.Cid, endpoint string, prettyOutp
fmt.Fprintln(os.Stdout, "\tProtocols:", record.Protocols)
fmt.Fprintln(os.Stdout, "\tAddresses:", record.Addrs)

//lint:ignore SA1019 // ignore staticcheck
case types.SchemaBitswap:
//lint:ignore SA1019 // ignore staticcheck
record := res.Val.(*types.BitswapRecord)
fmt.Fprintln(os.Stdout, record.ID)
fmt.Fprintln(os.Stdout, "\tProtocol:", record.Protocol)
Expand Down
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func (d *delegatedRoutingProxy) FindProviders(ctx context.Context, key cid.Cid,
}), nil
}

//lint:ignore SA1019 // ignore staticcheck
func (d *delegatedRoutingProxy) ProvideBitswap(ctx context.Context, req *server.BitswapWriteProvideRequest) (time.Duration, error) {
return 0, routing.ErrNotSupported
}
Expand Down

0 comments on commit 1a92f7b

Please sign in to comment.