add config and storage support for a message cap #32

Merged
dan merged 3 commits from msgCap into trunk 2022-04-26 01:47:31 +00:00
Owner
No description provided.
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/server/40
dan force-pushed msgCap from a9abf963c3 to 229f742a4f 2022-04-26 00:38:43 +00:00 Compare
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/server/41
dan force-pushed msgCap from 229f742a4f to b144bc34cc 2022-04-26 01:22:57 +00:00 Compare
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/server/42
dan added 1 commit 2022-04-26 01:35:02 +00:00
continuous-integration/drone/pr Build is passing Details
a8ef9fe001
deps version bump
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/server/43
sarah approved these changes 2022-04-26 01:44:20 +00:00
server.go Outdated
@ -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
Owner

if you fix persistance you should probably fix whatev er mess toklenServer is

if you fix `persistance` you should probably fix whatev er mess `toklenServer` is
server.go Outdated
@ -247,2 +247,4 @@
}
// GetMessageCap gets a server's MaxStorageMBs value
func (s *server) GetMaxStoreageMBs() int {
Owner

Storeage

Stor~~e~~age
server.go Outdated
@ -249,0 +251,4 @@
return s.config.GetMaxMessageMBs()
}
// SetMaxStoreageMBs sets a server's MaxStoreageMBs and sets MaxMessages for storage (which can trigger a prune)
Owner

MaxStoreageMBs

MaxStor~~e~~ageMBs
server.go Outdated
@ -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) {
Owner

Storeage

Stor~~e~~age
dan added 1 commit 2022-04-26 01:47:28 +00:00
continuous-integration/drone/pr Build is pending Details
eba86577c8
spelling
dan merged commit d748752648 into trunk 2022-04-26 01:47:31 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/server#32
No description provided.