Global Feed Post Login
Replying to Avatar 0xtr

Not "noDes" but noTes. When strfry sees a new note, it sends it to the plugin you specify in the config over stdin. The plugin executes and responds back over stdout. In other words, unless you write to file, the Map that holds track of the sources will not be persisted for the next note (or the next execution of the script). The sources I refer to is this: https://github.com/damus-io/noteguard/blob/master/src/filters/rate_limit.rs#L16

Avatar
jb55 1y ago

strfry doesn’t spawn the plugin once per note, it spawns it once and streams notes to it via stdin/stdout

Reply to this note

Please Login to reply.

Discussion

Avatar
0xtr 1y ago

oh, TIL. Then it makes a lot more sense

Thread collapsed