add config and storage support for a message cap #32
Loading…
Reference in New Issue
No description provided.
Delete Branch "msgCap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/server/40
a9abf963c3
to229f742a4f
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/server/41
229f742a4f
tob144bc34cc
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/server/42
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/server/43
@ -177,3 +177,3 @@
}
// Destroy frees the last of the resources the server has active (toklenServer persistance) leaving it un-re-runable and completely shutdown
// Destroy frees the last of the resources the server has active (toklenServer persistence) leaving it un-re-runable and completely shutdown
if you fix
persistance
you should probably fix whatev er messtoklenServer
is@ -247,2 +247,4 @@
}
// GetMessageCap gets a server's MaxStorageMBs value
func (s *server) GetMaxStoreageMBs() int {
Stor
eage@ -249,0 +251,4 @@
return s.config.GetMaxMessageMBs()
}
// SetMaxStoreageMBs sets a server's MaxStoreageMBs and sets MaxMessages for storage (which can trigger a prune)
MaxStor
eageMBs@ -249,0 +252,4 @@
}
// SetMaxStoreageMBs sets a server's MaxStoreageMBs and sets MaxMessages for storage (which can trigger a prune)
func (s *server) SetMaxStoreageMBs(val int) {
Stor
eage