fix_: make StoreNodeRequestManager filters ephemeral (#5582) (#5590)

This commit is contained in:
Igor Sirotin 2024-07-26 17:48:01 +01:00 committed by GitHub
parent 0e579fbd01
commit 2013b65c58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -279,6 +279,8 @@ func (m *StoreNodeRequestManager) getFilter(requestType storeNodeRequestType, da
return nil, false, fmt.Errorf("invalid store node request type: %d", requestType)
}
filter.Ephemeral = true
return filter, true, nil
}

View File

@ -543,7 +543,7 @@ func (f *FiltersManager) LoadPublic(chatID string, pubsubTopic string) (*Filter,
f.logger.Debug("updating pubsub topic for filter",
zap.String("chatID", chatID),
zap.String("type", "public"),
zap.String("oldTOpic", chat.PubsubTopic),
zap.String("oldTopic", chat.PubsubTopic),
zap.String("newTopic", pubsubTopic),
)
chat.PubsubTopic = pubsubTopic