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

Implement hash and timestamp-based syncing #1

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

renxida
Copy link
Owner

@renxida renxida commented Jun 28, 2024

Changes

  1. Content hashing: Use MD5 hashes to determine sync necessity.
  2. Timestamp-based syncing: Add timestamps to all clipboard updates and use last-write-wins policy for conflict resolution.
  3. Improved error handling and logging.

Implementation details

  • uniclip.lua: Added hashing and timestamp functions, updated server communication.
  • client.py: Implemented timestamp awareness and smarter polling.
  • server.py: Replaced pending_updates queue with timestamp-based system.

@renxida renxida merged commit a173733 into main Jun 28, 2024
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