Disable interest policies

This commit is contained in:
Neil Alexander 2021-07-14 14:50:17 +01:00
parent 74735e7cd5
commit ec4e0302c0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -18,12 +18,12 @@ var (
var streams = []*nats.StreamConfig{
{
Name: OutputRoomEvent,
Retention: nats.InterestPolicy,
//Retention: nats.InterestPolicy,
Storage: nats.FileStorage,
},
{
Name: OutputSendToDeviceEvent,
Retention: nats.InterestPolicy,
//Retention: nats.InterestPolicy,
Storage: nats.FileStorage,
},
{
@ -33,18 +33,18 @@ var streams = []*nats.StreamConfig{
},
{
Name: OutputTypingEvent,
Retention: nats.InterestPolicy,
//Retention: nats.InterestPolicy,
Storage: nats.MemoryStorage,
MaxAge: time.Second * 60,
},
{
Name: OutputClientData,
Retention: nats.InterestPolicy,
//Retention: nats.InterestPolicy,
Storage: nats.FileStorage,
},
{
Name: OutputReceiptEvent,
Retention: nats.InterestPolicy,
//Retention: nats.InterestPolicy,
Storage: nats.FileStorage,
},
}