mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-27 05:56:07 +00:00
fix(c-bindings): stop discv5
This commit is contained in:
parent
e69d6e61dd
commit
d4e0a70233
@ -57,6 +57,6 @@ func StopDiscoveryV5() string {
|
||||
if wakuNode.DiscV5() == nil {
|
||||
return MakeJSONResponse(errors.New("DiscV5 is not mounted"))
|
||||
}
|
||||
err := wakuNode.DiscV5().Start(context.Background())
|
||||
return MakeJSONResponse(err)
|
||||
wakuNode.DiscV5().Stop()
|
||||
return MakeJSONResponse(nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user