Using the policy in more than one process fails
So I'm experimenting with this policy and want to stream from multiple relays which to my understanding would work with multiple processes, right? But then I get:
error: Uncaught NotFound: No such file or directory (os error 2): remove '/tmp/strfry-anti-duplication-policy.sqlite3-journal'
Deno.removeSync(path);
^
at Object.removeSync (ext:deno_fs/30_fs.js:197:7)
at js_delete (https://deno.land/x/sqlite@v3.7.1/build/vfs.js:39:12)a
at <anonymous> (wasm://wasm/0027cea2:1:5584)
at <anonymous> (wasm://wasm/0027cea2:1:86601)
at <anonymous> (wasm://wasm/0027cea2:1:77100)
at <anonymous> (wasm://wasm/0027cea2:1:173629)
at <anonymous> (wasm://wasm/0027cea2:1:92188)
at <anonymous> (wasm://wasm/0027cea2:1:33496)
at <anonymous> (wasm://wasm/0027cea2:1:28077)
at <anonymous> (wasm://wasm/0027cea2:1:4492)
2023-06-10 13:47:52.984 ( 49.294s) [main thread ] ERR| Couldn't setup PluginWritePolicy: pipe to plugin was closed (plugin crashed?)
2023-06-10 13:47:52.984 ( 49.295s) [main thread ]INFO| [172.67.206.128] write policy blocked event 7f6c45b2184b1c5444322b58de17cae2edfde72c8eba2b2d98871651f439cc82: error: internal error
2023-06-10 13:47:53.475 ( 49.785s) [main thread ]INFO| Setting up write policy plugin: /opt/strfry-policy.ts
2023-06-10 13:47:53.604 ( 49.915s) [Writer ]INFO| Deleting event (replaceable). id=789c91813536592422d37c64289e41e439431985b9d11780ac4e9e3b5ba718b5
2023-06-10 13:47:53.606 ( 49.916s) [Writer ]INFO| Writer: added: 2 dups: 0
So not only did the plugin crash for one of the processes, strfry appears to keep streaming without applying the policy given the event processing after the plugin crashed?