mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
chore: fix build
This commit is contained in:
parent
43771291a8
commit
dc040a542d
2
vendor/nim-serialization
vendored
2
vendor/nim-serialization
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 12ada99c0c88a7ed4b45c7af0aebcce3ef7f926a
|
Subproject commit 73d6108d9c7ad0a1283d1e361a3f86e6c676a305
|
||||||
@ -11,13 +11,14 @@ license = "MIT or Apache License 2.0"
|
|||||||
### Dependencies
|
### Dependencies
|
||||||
requires "nim >= 2.2.4",
|
requires "nim >= 2.2.4",
|
||||||
"chronicles",
|
"chronicles",
|
||||||
"confutils",
|
"confutils#e214b39",
|
||||||
"chronos",
|
"chronos",
|
||||||
"dnsdisc",
|
"dnsdisc",
|
||||||
"eth",
|
"eth",
|
||||||
"json_rpc",
|
"json_rpc",
|
||||||
"libbacktrace",
|
"libbacktrace",
|
||||||
"nimcrypto",
|
"nimcrypto",
|
||||||
|
"serialization#73d6108",
|
||||||
"stew",
|
"stew",
|
||||||
"stint",
|
"stint",
|
||||||
"metrics",
|
"metrics",
|
||||||
|
|||||||
@ -98,8 +98,11 @@ proc readValue*[T](r: var EnvvarReader, value: var T) {.raises: [SerializationEr
|
|||||||
if reader != nil:
|
if reader != nil:
|
||||||
try:
|
try:
|
||||||
reader(value, r)
|
reader(value, r)
|
||||||
except IOError as e:
|
except IOError:
|
||||||
raise newException(SerializationError, "Envvar reader IO error: " & e.msg)
|
raise newException(
|
||||||
|
SerializationError,
|
||||||
|
"Envvar reader IO error: " & getCurrentExceptionMsg()
|
||||||
|
)
|
||||||
discard r.key.pop()
|
discard r.key.pop()
|
||||||
else:
|
else:
|
||||||
const typeName = typetraits.name(T)
|
const typeName = typetraits.name(T)
|
||||||
|
|||||||
@ -60,8 +60,6 @@ proc decodeFromJsonBytes*[T](
|
|||||||
RestJson.decode(
|
RestJson.decode(
|
||||||
string.fromBytes(data),
|
string.fromBytes(data),
|
||||||
T,
|
T,
|
||||||
requireAllFields = requireAllFields,
|
|
||||||
allowUnknownFields = true,
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except SerializationError:
|
except SerializationError:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user