auctioneer: fix linter issue

The new version of RPC structs contains an internal lock and therefore
they shouldn't be memory copied anymore. The linter fortunately picked
up on this and warned us, so we pass in the pointer here directly
instead.
This commit is contained in:
Oliver Gugger 2021-07-29 13:53:16 +02:00
parent 938e608ab2
commit edf67bc1b0
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 2 additions and 2 deletions

View file

@ -641,7 +641,7 @@ func (c *Client) connectAndAuthenticate(ctx context.Context,
// handled specifically so we return a typed error now.
if errMsg.ErrorCode == auctioneerrpc.SubscribeError_INCOMPLETE_ACCOUNT_RESERVATION {
return sub, true, AcctResNotCompletedErrFromRPC(
*errMsg.AccountReservation,
errMsg.AccountReservation,
)
}

View file

@ -60,7 +60,7 @@ func (e *AcctResNotCompletedError) Unwrap() error {
// AcctResNotCompletedErrFromRPC creates a new AcctResNotCompletedError from an
// RPC account message.
func AcctResNotCompletedErrFromRPC(
rpcAcc auctioneerrpc.AuctionAccount) *AcctResNotCompletedError {
rpcAcc *auctioneerrpc.AuctionAccount) *AcctResNotCompletedError {
result := &AcctResNotCompletedError{
Value: btcutil.Amount(rpcAcc.Value),