237 karma · joined July 26, 2018
Didn't they grow up in an age unrestricted web either? By now we must have two generations of unhinged children grown up with unsafe World of Warcraft, MSN, Whatsapp and ICQ. Oh and the p0rn... I mean, seriously, do you guys have nothing else to do than to moderate your kids Minecraft servers?
I get that it's difficult to translate this 1:1 into Rust without channels and select primitives, but saying it's complex is wild. Try the server-side code for leases ;)
[1] https://github.com/etcd-io/etcd/blob/main/client/v3/kv.go#L3...
I also think your rotation will delete the wrong segment when you have more than ten segments - imagine you're writing rebuf-1 to rebuf-10 - what's the "oldest file" to delete now? Besides, should you really delete those files?
As for the correctness of the solution: that's why the voting system and tickmarks are there. Wrong solutions would ideally be downvoted and never marked correct, I don't really see how AI is making a big difference here. Moderators today aren't running the answered code either.