Skip to content

Commit

Permalink
misc. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SionoiS committed Jul 9, 2024
1 parent 2bb9293 commit 5c14b43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/waku_sync/sync_utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import std/options, chronos, chronicles, libp2p/crypto/crypto

import ../../../waku/[node/peer_manager, waku_core, waku_sync], ../testlib/wakucore
import waku/[node/peer_manager, waku_core, waku_sync], ../testlib/wakucore

proc newTestWakuSync*(
switch: Switch,
Expand Down
2 changes: 1 addition & 1 deletion waku/waku_sync/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ proc new*(

let res = await sync.initFillStorage(wakuArchive)
if res.isErr():
return err("initial storage filling error: " & res.error)
error "initial storage filling failed", error = res.error

info "WakuSync protocol initialized"

Expand Down
4 changes: 2 additions & 2 deletions waku/waku_sync/raw_bindings.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ else:

from os import DirSep

import std/[strutils], chronicles, std/options, stew/[results, byteutils], confutils
import std/[strutils], chronicles, std/options, stew/byteutils, confutils, results
import ../waku_core/message

const negentropyPath =
Expand Down Expand Up @@ -271,7 +271,7 @@ type

NegentropyPayload* = distinct seq[byte]

method delete*(self: Negentropy) {.base.} =
method delete*(self: Negentropy) {.base, gcsafe.} =
discard

method initiate*(self: Negentropy): Result[NegentropyPayload, string] {.base.} =
Expand Down

0 comments on commit 5c14b43

Please sign in to comment.