feat(spiff-workflow)_: disable store nodes for spiffy workfluffy
This commit is contained in:
parent
9901ac9b9d
commit
1844ab7c83
|
@ -154,6 +154,8 @@ func main() {
|
|||
|
||||
wakuext := waku2extn.NewPublicAPI(wakuextservice)
|
||||
|
||||
messenger := wakuext.Messenger()
|
||||
messenger.DisableStoreNodes()
|
||||
// This will start the push notification server as well as
|
||||
// the config is set to Enabled
|
||||
_, err = wakuext.StartMessenger()
|
||||
|
@ -162,7 +164,7 @@ func main() {
|
|||
return
|
||||
}
|
||||
|
||||
retrieveMessagesLoop(wakuext.Messenger(), 300*time.Millisecond)
|
||||
retrieveMessagesLoop(messenger, 300*time.Millisecond)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -835,6 +835,10 @@ loop:
|
|||
return result
|
||||
}
|
||||
|
||||
func (m *Messenger) DisableStoreNodes() {
|
||||
m.featureFlags.StoreNodesDisabled = true
|
||||
}
|
||||
|
||||
func (m *Messenger) processMailserverBatch(ms mailservers.Mailserver, batch MailserverBatch) error {
|
||||
if m.featureFlags.StoreNodesDisabled {
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue