-
Notifications
You must be signed in to change notification settings - Fork 40
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
Binsync Server Implementation #348
base: main
Are you sure you want to change the base?
Conversation
Renamed item in atomic git action to GitServer. Probably easier to just copy over stuff from the client and delete whatever I don't need. Also, one small type change for iterable repos.
Temporarily commented out a property for has_remote. Added some logic to create and shut down the server. Currently doesn't handle calling of any atomic git actions. I still need to handle the scheduler stuff.
Currently, just added a flag to use the server versions of functions if a client flag is on. My echo function works, but nothing with the atomic decorator works for now. However, basic communication works. And the client is able to shut the server down. There's some TODOs that need to be taken care of. Mainly the fact that if the server address is in use then attempt to create a proxy instead of create a full server.
Basically just hijacked the code to test the client, and I'm using that to quickly test, since making a binja connection every time would be a pain to debug.
Okay, I copied over the client code to the git server, since I figured it'd be easier to delete stuff I wasn't using later. Currently able to spin up an XMLRPC server, tested it with 1 client and non atomic calls work. There's a line I forgot to change that's making it accept only 1 client. Will change that next commit. For the time being I just tacked on the atomic git action decorator to the server, that's probably wrong, so the commits are heavily WIP. |
This draft PR is aimed towards solving #346.
TODO: