Skip to content

Commit

Permalink
multi: nilerr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jharveyb committed Mar 4, 2024
1 parent 8d99137 commit 95d8f59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tapdb/assets_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,8 @@ func (a *AssetStore) FetchAssetProofs(ctx context.Context,
// TODO(roasbeef): can modify the query to use IN somewhere
// instead? then would take input params and insert into
// virtual rows to use
for _, locator := range targetAssets {
for ind := range targetAssets {
locator := targetAssets[ind]
args, err := locatorToProofQuery(locator)
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions tapgarden/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"encoding/hex"
"fmt"
"github.com/lightninglabs/taproot-assets/tapsend"
"math/rand"
"testing"
"time"
Expand All @@ -23,6 +22,7 @@ import (
"github.com/lightninglabs/taproot-assets/asset"
"github.com/lightninglabs/taproot-assets/internal/test"
"github.com/lightninglabs/taproot-assets/proof"
"github.com/lightninglabs/taproot-assets/tapsend"
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/lnwallet"
Expand Down Expand Up @@ -520,7 +520,7 @@ func (m *MockKeyRing) DeriveNextKey(ctx context.Context,

priv, err := btcec.NewPrivateKey()
if err != nil {
return keychain.KeyDescriptor{}, nil
return keychain.KeyDescriptor{}, err
}

loc := keychain.KeyLocator{
Expand Down
1 change: 1 addition & 0 deletions universe/auto_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ func (f *FederationEnvoy) SyncAssetInfo(ctx context.Context,
if err != nil {
log.Debugf("asset lookup for %v failed with remote"+
"server: %v", assetID.String(), addr.HostStr())
//lint:ignore nilerr failure is expected and logged
return nil
}

Expand Down

0 comments on commit 95d8f59

Please sign in to comment.