Formatting
This commit is contained in:
parent
c4d9eb8a8f
commit
a62f6c4769
|
@ -312,7 +312,12 @@ callback itself.)")
|
|||
// function, but that deadlocks pretty much right away because of the crappiness of the gil.
|
||||
return std::make_unique<OxenMQ>(stderr_logger{}, level);
|
||||
}))
|
||||
.def(py::init([](py::bytes pubkey, py::bytes privkey, bool sn, OxenMQ::SNRemoteAddress sn_lookup, std::optional<LogLevel> log_level) {
|
||||
.def(py::init([](
|
||||
py::bytes pubkey,
|
||||
py::bytes privkey,
|
||||
bool sn,
|
||||
OxenMQ::SNRemoteAddress sn_lookup,
|
||||
std::optional<LogLevel> log_level) {
|
||||
return std::make_unique<OxenMQ>(pubkey, privkey, sn, std::move(sn_lookup),
|
||||
log_level ? OxenMQ::Logger{stderr_logger{}} : nullptr,
|
||||
log_level.value_or(LogLevel::warn));
|
||||
|
|
Loading…
Reference in New Issue