mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
discovery: revert passing ctx through to Start methods
This commit is contained in:
@@ -994,7 +994,7 @@ func createTestCtx(t *testing.T, startHeight uint32, isChanPeer bool) (
|
||||
ScidCloser: newMockScidCloser(isChanPeer),
|
||||
}, selfKeyDesc)
|
||||
|
||||
if err := gossiper.Start(context.Background()); err != nil {
|
||||
if err := gossiper.Start(); err != nil {
|
||||
return nil, fmt.Errorf("unable to start router: %w", err)
|
||||
}
|
||||
|
||||
@@ -1692,7 +1692,7 @@ func TestSignatureAnnouncementRetryAtStartup(t *testing.T) {
|
||||
KeyLocator: tCtx.gossiper.selfKeyLoc,
|
||||
})
|
||||
require.NoError(t, err, "unable to recreate gossiper")
|
||||
if err := gossiper.Start(context.Background()); err != nil {
|
||||
if err := gossiper.Start(); err != nil {
|
||||
t.Fatalf("unable to start recreated gossiper: %v", err)
|
||||
}
|
||||
defer gossiper.Stop()
|
||||
|
Reference in New Issue
Block a user