mirror of
https://github.com/logos-storage/nim-libplum.git
synced 2026-06-07 09:40:01 +00:00
Format
This commit is contained in:
parent
e50f341ad8
commit
83d1866877
@ -119,9 +119,7 @@ template withSafeLock(body: untyped) =
|
||||
withLock activeMappingsLock:
|
||||
body
|
||||
|
||||
proc mappingCallback(
|
||||
id: cint, state: plum_state_t, raw: ptr plum_mapping_t
|
||||
) {.cdecl.} =
|
||||
proc mappingCallback(id: cint, state: plum_state_t, raw: ptr plum_mapping_t) {.cdecl.} =
|
||||
## Called from libplum's internal C thread on SUCCESS, FAILURE, and DESTROYED.
|
||||
|
||||
foreignThreadGc:
|
||||
|
||||
@ -159,7 +159,9 @@ when miniupnp_protocol != "":
|
||||
|
||||
test "mapping is renewed after miniupnpd restart":
|
||||
require init(
|
||||
discoverTimeout = discoverMs.int32, logLevel = logLevel, recheckPeriod = recheckMs.int32
|
||||
discoverTimeout = discoverMs.int32,
|
||||
logLevel = logLevel,
|
||||
recheckPeriod = recheckMs.int32,
|
||||
)
|
||||
.isOk()
|
||||
defer:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user