Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple sync targets #44

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

lightbull-stfc
Copy link

Add support for multiple sync targets. Legacy options sync_url and sync_token will be converted to [sync.targets.default].

[sync]

    [sync.targets.local]
    token = 'foo'
    url = 'http://localhost/sync/ingress/'

    [sync.targets.spocksclub]
    token = 'bar'
    url = 'https://spocks.club/sync/ingress/'

lightbull-stfc and others added 5 commits September 14, 2024 03:21
…etniV#40)

* Update sync.cc to propagate resources when their amount drops to 0

When all resources are spent, i.e. you use all your resource tokens for an upgrade, the amount of resources in inventory doesn't get pushed to sync endpoints. This PR partially addresses this problem by propagating those resources if they previously a non-zero value.

* Rewrite code for clarity
* Allow passing of configuration filename

* Make it work properly with widestrings
@netniV netniV merged commit 5bd13b0 into netniV:dev Oct 9, 2024
0 of 2 checks passed
@lightbull-stfc lightbull-stfc deleted the multiple-sync-targets branch October 12, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants