Doug Hoyte on Nostr: Thanks! This change shouldn't make much difference in import's behaviour. Because ...
Thanks!
This change shouldn't make much difference in import's behaviour. Because import pretty much constantly has a writer lock, relay *write* operations will be blocked/delayed (and may timeout), but *read* operations should continue as normal.
We could make import release its lock for a few milliseconds periodically so that write operations can go through. I'll look into doing that.
Published at
2024-09-06 03:47:57Event JSON
{
"id": "7336a4b63f87486795e068a4bab3ea630753d8360d7d54bcf5c9b273fa81d2c7",
"pubkey": "218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d",
"created_at": 1725594477,
"kind": 1,
"tags": [
[
"client",
"oddbean"
],
[
"e",
"7618a48aa9f9fd911100307a9dfabc38343643eb6491faebb6d943f1ee180346",
"",
"root"
],
[
"e",
"fe3741948f871fd9be16683f5fe00569e41a2f3e71e61a16832acd49bb5de64f",
"",
"reply"
],
[
"p",
"218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d"
],
[
"p",
"9fec72d579baaa772af9e71e638b529215721ace6e0f8320725ecbf9f77f85b1"
]
],
"content": "Thanks!\n\nThis change shouldn't make much difference in import's behaviour. Because import pretty much constantly has a writer lock, relay *write* operations will be blocked/delayed (and may timeout), but *read* operations should continue as normal.\n\nWe could make import release its lock for a few milliseconds periodically so that write operations can go through. I'll look into doing that.",
"sig": "5a819d0c4475e6f9e67590b47597372ae46705ef98f6137347c56b3a2e62a7d2ff58e1a7dc08897167c76f3c62d72adcfee8f8f350c6ba89297d77a3deb424c9"
}