nim-libp2p/examples
Eric Mastro fffa7e8cc2
fix: remove returned Futures from switch.start (#662)
* fix: remove returned Futures from switch.start

The proc `start` returned a seq of futures that was mean to be awaited by the caller. However, the start proc itself awaited each Future before returning it, so the ceremony requiring the caller to await the Future, and returning the Futures themselves was just used to handle errors. But we'll give a better way to handle errors in a future revision

Remove `switch.start` return type (implicit `Future[void]`)

Update tutorials and examples to reflect the change.

* Raise error during failed transport

Replaces logging of error, and adds comment that it should be replaced with a callback in a future PR.
2021-12-03 19:23:12 +01:00
..
go-daemon Remove asynccheck (#590) 2021-06-14 17:21:44 -06:00
directchat.nim fix: remove returned Futures from switch.start (#662) 2021-12-03 19:23:12 +01:00
helloworld.nim fix: remove returned Futures from switch.start (#662) 2021-12-03 19:23:12 +01:00
hexdump.nim Make unix socket name generation more reliable (depending on process id). 2018-12-18 16:31:58 +02:00
tutorial_1_connect.md fix: remove returned Futures from switch.start (#662) 2021-12-03 19:23:12 +01:00
tutorial_2_customproto.md fix: remove returned Futures from switch.start (#662) 2021-12-03 19:23:12 +01:00