nim-libp2p/libp2p
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
..
crypto Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
daemon Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
muxers Short agent fix (#645) 2021-11-08 18:33:37 +01:00
nameresolving Integrate dns resolving (#615) 2021-11-08 13:02:03 +01:00
protobuf Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
protocols Customizable gossipsub backoff on unsubscribe (#665) 2021-12-02 14:47:40 +00:00
stream Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
transports Handle websock exceptions in handle (#658) 2021-11-26 13:55:35 +01:00
upgrademngrs Short agent fix (#645) 2021-11-08 18:33:37 +01:00
utils adding raises defect across the codebase (#572) 2021-05-21 10:27:01 -06:00
builders.nim Add support for multiple addresses to transports (#598) 2021-11-24 14:01:12 -06:00
cid.nim fix peer score accumulation (#541) 2021-03-09 13:22:52 +01:00
connmanager.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
debugutils.nim Remove peer info (#610) 2021-09-08 11:07:46 +02:00
dial.nim merge latest master 2021-06-02 12:25:36 -06:00
dialer.nim Integrate dns resolving (#615) 2021-11-08 13:02:03 +01:00
errors.nim use LPError more consistently (#582) 2021-06-02 15:39:10 +02:00
multiaddress.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
multibase.nim fix peer score accumulation (#541) 2021-03-09 13:22:52 +01:00
multicodec.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
multihash.nim fix peer score accumulation (#541) 2021-03-09 13:22:52 +01:00
multistream.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
peerid.nim Merge pull request #651 from status-im/unstable 2021-11-16 17:36:00 +01:00
peerinfo.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
peerstore.nim Remove peer info (#610) 2021-09-08 11:07:46 +02:00
routing_record.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
signed_envelope.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
standard_switch.nim More builders (#560) 2021-04-06 14:16:23 -06:00
switch.nim fix: remove returned Futures from switch.start (#662) 2021-12-03 19:23:12 +01:00
transcoder.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
utility.nim now wild `except:` 2021-03-15 16:48:11 +09:00
varint.nim use stew/leb128 (#481) 2020-12-15 12:15:22 -06:00
vbuffer.nim make `isLiteral` compatible with ARC and ORC (#602) 2021-07-01 12:05:50 +02:00
wire.nim Websocket Transport (#593) 2021-08-03 15:48:03 +02:00