you are very wrong in writing this code, very wrong, so wrong that you don't get to say that i'm wrong about broadcast without qualifying your statement
https://github.com/fiatjaf/eventstore/blob/master/badger/query.go#L183
nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6
this might be one of the most opaque pieces of source code i have ever read in my life
put some comments in there to explain why the if/then/else/if/then/else logic because it's not clear at all
i'm spending half my day tomorrow, to try and decipher the meaning of this absurdly opaque piece of code, but you really should not be able to get away with publishing this and not being held accountable
Discussion
Why are you reading it? You could just implement your own from scratch.
that's a good quality answer to a question about the code you haven't explained
i will explain your code, then i will rewrite it
if it can't be read, how can it be trusted?
if it can't be read how can it be extended?
also, the moment you stop thinking about your code not being read by other people the sooner you write good code
your code is pretty good, just sayin
i wouldn'tt be using it if i thought it was shit, you know