Closed bbigras closed 1 year ago
Yea it should be, I'll take a look
You are my new best friend, by the way. These are the types of bugs I need to find before I can call this thing production ready.
You've found a deadlock in the restore process. I wasn't aware that the raft library would automatically attempt the restore itself, and I'm holding a lock when it attempts that. Trying out a fix.
You are my new best friend, by the way
hehe same. I really like the idea of webmesh.
Same as before - main
should fix your issue, I'll be a little zealous and do two patch releases tonight :smile:
It works! Thanks!!
no hurries. nixpkgs doesn't have go 1.21 merged yet.
An extra thing I'll call out - and it's making me wonder if this should remain the default behavior or not - is unless you specify a --wireguard.key-file
- you'll generate a fresh one on each boot (you can specify it at a non-existant path and it will generate it for you the first time).
With the way I see you doing this - that could affect someone waiting for a voting/leader node to just "reappear". If it comes back with a different key, they the other node will try to reconnect to it using the old one still. It will only get notified of key changes when it has a leader it can chat with :stuck_out_tongue: .
Regarding the Go version. Yea that literally came out a few hours ago. But I was really excited to move all the structured logging to the new built-in log/slog
package. I probably should have waiting a day. That's how long it usually takes for package maintainers to catch up.
If I run this command, stop it and run it again:
I get:
I'm guessing it should be near instant.