Skip to content

Commit

Permalink
wallet: send RescanProgress by value instead of pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Oct 13, 2023
1 parent 84086e7 commit 5d168f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/rescan.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// set of wallet addresses.
type RescanProgressMsg struct {
Addresses []btcutil.Address
Notification *chain.RescanProgress
Notification chain.RescanProgress
}

// RescanFinishedMsg reports the addresses that were rescanned when a
Expand Down Expand Up @@ -147,7 +147,7 @@ func (w *Wallet) rescanBatchHandler() {
select {
case w.rescanProgress <- &RescanProgressMsg{
Addresses: curBatch.addrs,
Notification: n,
Notification: *n,
}:
case <-quit:
for _, errChan := range curBatch.errChans {
Expand Down

0 comments on commit 5d168f9

Please sign in to comment.