mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
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:
parent
938e608ab2
commit
edf67bc1b0
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue