mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loop+loopd: fix linter after re-generating protos
Apparently re-generating the protos caused the linter to pick up on fields that are now deprecated. We need to fix that with a few comments.
This commit is contained in:
parent
77f7b73570
commit
803773bb65
2 changed files with 7 additions and 7 deletions
|
|
@ -203,8 +203,8 @@ func loopOut(ctx *cli.Context) error {
|
|||
}
|
||||
|
||||
fmt.Printf("Swap initiated\n")
|
||||
fmt.Printf("ID: %v\n", resp.Id)
|
||||
fmt.Printf("HTLC address: %v\n", resp.HtlcAddress)
|
||||
fmt.Printf("ID: %x\n", resp.IdBytes)
|
||||
fmt.Printf("HTLC address: %v\n", resp.HtlcAddress) // nolint:staticcheck
|
||||
if resp.ServerMessage != "" {
|
||||
fmt.Printf("Server message: %v\n", resp.ServerMessage)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,12 +121,12 @@ func (s *swapClientServer) LoopOut(ctx context.Context,
|
|||
}
|
||||
|
||||
switch {
|
||||
case in.LoopOutChannel != 0 && len(in.OutgoingChanSet) > 0:
|
||||
case in.LoopOutChannel != 0 && len(in.OutgoingChanSet) > 0: // nolint:staticcheck
|
||||
return nil, errors.New("loop_out_channel and outgoing_" +
|
||||
"chan_ids are mutually exclusive")
|
||||
|
||||
case in.LoopOutChannel != 0:
|
||||
req.OutgoingChanSet = loopdb.ChannelSet{in.LoopOutChannel}
|
||||
case in.LoopOutChannel != 0: // nolint:staticcheck
|
||||
req.OutgoingChanSet = loopdb.ChannelSet{in.LoopOutChannel} // nolint:staticcheck
|
||||
|
||||
default:
|
||||
req.OutgoingChanSet = in.OutgoingChanSet
|
||||
|
|
@ -540,9 +540,9 @@ func (s *swapClientServer) LoopIn(ctx context.Context,
|
|||
|
||||
if req.ExternalHtlc {
|
||||
response.HtlcAddressNp2Wsh = swapInfo.HtlcAddressNP2WSH.String()
|
||||
response.HtlcAddress = response.HtlcAddressNp2Wsh
|
||||
response.HtlcAddress = response.HtlcAddressNp2Wsh // nolint:staticcheck
|
||||
} else {
|
||||
response.HtlcAddress = response.HtlcAddressP2Wsh
|
||||
response.HtlcAddress = response.HtlcAddressP2Wsh // nolint:staticcheck
|
||||
}
|
||||
|
||||
return response, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue