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

feat(client):support single instance #522

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

0xbrayo
Copy link
Member

@0xbrayo 0xbrayo commented Apr 4, 2025

Important

Add single_instance module to aw-client-rust to ensure single instance execution using file locks.

  • Feature:
    • Add single_instance module in aw-client-rust/src/single_instance.rs to ensure only one instance of the client runs.
    • Uses file locks for synchronization, with platform-specific implementations for Windows and Unix-like systems.
  • Dependencies:
    • Add libc, log, and thiserror to aw-client-rust/Cargo.toml.
    • Update dirs dependency to version 4.0 in aw-client-rust/Cargo.toml.
  • Misc:
    • Add single_instance module to aw-client-rust/src/lib.rs.

This description was created by Ellipsis for 6a7fa3d. It will automatically update as commits are pushed.

@0xbrayo 0xbrayo marked this pull request as draft April 4, 2025 14:31
@0xbrayo
Copy link
Member Author

0xbrayo commented Apr 4, 2025

Pending testing :)

@0xbrayo
Copy link
Member Author

0xbrayo commented Apr 12, 2025

Did some testing on linux, works as expected. Will do windows later

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.

1 participant