Remove dead code

This commit is contained in:
Arnaud 2025-09-29 15:18:24 +02:00
parent 62bf2e4949
commit d2623ddce9
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE
3 changed files with 2 additions and 8 deletions

View File

@ -100,5 +100,3 @@ proc process*(
error "Failed to get PEER.", error = res.error
return err($res.error)
return res
return ok("")

View File

@ -74,5 +74,3 @@ proc process*(
error "Failed to get PEERID.", error = res.error
return err($res.error)
return res
return ok("")

View File

@ -66,14 +66,14 @@ proc connect(
return err("Failed to connect to peer: peer not found.")
peerRecord.get().addresses.mapIt(it.address)
except CancelledError as e:
except CancelledError:
return err("Failed to connect to peer: operation cancelled.")
except CatchableError as e:
return err("Failed to connect to peer: " & $e.msg)
try:
await node.connect(id, addresses)
except CancelledError as e:
except CancelledError:
return err("Failed to connect to peer: operation cancelled.")
except CatchableError as e:
return err("Failed to connect to peer: " & $e.msg)
@ -93,5 +93,3 @@ proc process*(
error "Failed to CONNECT.", error = res.error
return err($res.error)
return res
return ok("")