mirror of
https://github.com/oxen-io/oxen-pyoxenmq.git
synced 2023-12-13 20:50:34 +01:00
Merge commit '296f61a' into debian/bookworm
This commit is contained in:
commit
f29b0b6ce4
|
@ -736,7 +736,7 @@ the background).)")
|
||||||
if (auto* bytes = std::get_if<py::bytes>(&conn)) {
|
if (auto* bytes = std::get_if<py::bytes>(&conn)) {
|
||||||
if (len(*bytes) != 32)
|
if (len(*bytes) != 32)
|
||||||
throw std::logic_error{"Error: send(...) to=pubkey requires 32-byte pubkey"};
|
throw std::logic_error{"Error: send(...) to=pubkey requires 32-byte pubkey"};
|
||||||
conn.emplace<ConnectionID>(*bytes);
|
conn.emplace<ConnectionID>(static_cast<std::string>(*bytes));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool request = kwargs.contains("request") && kwargs["request"].cast<bool>();
|
bool request = kwargs.contains("request") && kwargs["request"].cast<bool>();
|
||||||
|
|
Loading…
Reference in a new issue