Restore storage/retention

This commit is contained in:
Neil Alexander 2021-07-14 15:45:46 +01:00
parent 0f65b8a621
commit af49ce17a7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

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