various improvements #142
schtobia
started this conversation in
Show and tell
Replies: 1 comment 2 replies
|
Hi, wow, that looks great! We would welcome any of these changes. Feel free to open separate pull requests for independent fixes/improvements :) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all, I've made some improvements: https://github.com/schtobia/timew-sync-server/tree/dev/for_upstream
To summarize my work:
GetFreeUserID(wasi > 0, nowi >= 0) and added tests for user management.SolveConflictnow computes a net diff and applies changes via a singleModifyIntervalscall instead of separate add/remove loops.log.Fatalfduring DB initialization/migrations and checksrows.Err()after iteration.storage.GlobalStorageandsync.PublicKeyLocationwith async.ServerConfigstruct that carries the storage backend, key directory, and auth settings./api/synctoPOST, and configures the server with sensible read/write/idle timeouts.Is this of any interest, should I issue an PR? If so, should I put this in one PR or should I open several?
[edit] Also, I have some more changes prepared if they are of any interest - one of them fixes #67.
All reactions