graphdb: pass context to PutClosedScid
This commit is contained in:
8 files changed
+25
-12
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package discovery
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"net"
|
||||
"sync"
|
||||
@@ -176,7 +177,9 @@ func newMockScidCloser(channelPeer bool) *mockScidCloser {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *mockScidCloser) PutClosedScid(scid lnwire.ShortChannelID) error {
|
||||
func (m *mockScidCloser) PutClosedScid(_ context.Context,
|
||||
scid lnwire.ShortChannelID) error {
|
||||
|
||||
m.Lock()
|
||||
m.m[scid] = struct{}{}
|
||||
m.Unlock()
|
||||
|
||||
Reference in new issue
Block a user