add config and storage support for a message cap #32

Merged
dan merged 3 commits from msgCap into trunk 2 months ago
dan commented 2 months ago
Owner
There is no content yet.
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/server/40
dan force-pushed msgCap from a9abf963c3 to 229f742a4f 2 months ago
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/server/41
dan force-pushed msgCap from 229f742a4f to b144bc34cc 2 months ago
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/server/42
dan added 1 commit 2 months ago
a8ef9fe001 deps version bump
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/server/43
sarah approved these changes 2 months ago
server.go Outdated
}
// 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
sarah commented 2 months ago
Poster
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
}
// GetMessageCap gets a server's MaxStorageMBs value
func (s *server) GetMaxStoreageMBs() int {
sarah commented 2 months ago
Poster
Owner

Storeage

Stor~~e~~age
server.go Outdated
return s.config.GetMaxMessageMBs()
}
// SetMaxStoreageMBs sets a server's MaxStoreageMBs and sets MaxMessages for storage (which can trigger a prune)
sarah commented 2 months ago
Poster
Owner

MaxStoreageMBs

MaxStor~~e~~ageMBs
server.go Outdated
}
// SetMaxStoreageMBs sets a server's MaxStoreageMBs and sets MaxMessages for storage (which can trigger a prune)
func (s *server) SetMaxStoreageMBs(val int) {
sarah commented 2 months ago
Poster
Owner

Storeage

Stor~~e~~age
dan added 1 commit 2 months ago
eba86577c8 spelling
dan merged commit d748752648 into trunk 2 months ago

Reviewers

sarah approved these changes 2 months ago
continuous-integration/drone/pr Build is pending
The pull request has been merged as d748752648.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.