ipfs-cluster/api
Hector Sanjuan 6a243df4da api: Support /ws/ and /dns/ multiaddresses parsing. Log all errors
The multiaddresses protocols for websockets and dns are only registered
with init() function when loading the modules. ipfs-cluster-ctl
uses just the api, which did not load these modules so converting
from serialized types caused bad panics.

We have also ignored errors in the api library under the thinking that it
would only parse things serialized by us, but this has made parsing errors
to go unnoticed. From now, all errors are logged and some precautions
are taking to better handle the possibility of nil objects.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 01:05:49 +01:00
..
rest client: do not cancel request context while reading the answer 2017-12-08 00:22:01 +01:00
types_test.go api: Support /ws/ and /dns/ multiaddresses parsing. Log all errors 2017-12-08 01:05:49 +01:00
types.go api: Support /ws/ and /dns/ multiaddresses parsing. Log all errors 2017-12-08 01:05:49 +01:00