mirror of
https://github.com/block/buzz.git
synced 2026-11-27 03:31:50 +00:00
create_channel and update_channel POST the kind:39000 metadata event, then immediately re-query the relay for it. The relay's read-side index is eventually-consistent, so that read-back could outrun indexing and return empty — tripping the "metadata not yet available" error even though the write succeeded (the channel then appeared on a later refresh). Wrap the read-back in a bounded poll (poll_channel_metadata) that retries on a short backoff before reporting the metadata missing. The modal already behaved correctly: it surfaced the transient error loudly; the command was the thing false-erroring. Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>