Mike Yang on Nostr: PR 处理了 Ruby 和 Rust 的交互。 Rust 会返回 Error,但 Ruby 喜欢 ...
Published at
2024-06-03 17:19:45Event JSON
{
"id": "08cc1d8037b3da479fd4ac50ed48ad0f20ec7b08b97454c9ca3d36e5f2dfca2b",
"pubkey": "a2dd5e13313d4e18fc2a8dfc0dd564ff1b488a8c5c6773a7616bc7f978817af5",
"created_at": 1717427985,
"kind": 1,
"tags": [],
"content": "PR 处理了 Ruby 和 Rust 的交互。\n\nRust 会返回 Error,但 Ruby 喜欢 Exception,所以把 Error 转成了 Exception,并抛出来。\n\nRuby 没那么严格/更灵活,Redis key 可以是非字符串,所以做了 to_s 处理。\n\nhttps://t.co/FfZxCw07Yd https://t.co/NxEvX4nAJe https://pbs.twimg.com/media/GPJ8_5qacAEC3wQ.jpg",
"sig": "6c9d450fcf1348892b9e56d838399ef0544bea9ae003f598561c047e17fe1225bd2a1a13e7881222b2beb430ef8625b2e54dc35657290a862c25e9f1aa2b5ac4"
}