Conversation
|
@dryajov Can you explain what you are trying to achieve with priorities? This is more than what relay should try to achieve. I don't see a necessity for it right now. |
|
The basic requirement is to be able to dial on certain transports before others. Right now, when dialing happens, all the transports are tried in sequence in whatever order they happened to be returned by the The requirement for circuit (and I might be a bit off on this one) is to be able to dial on circuit addresses only if all else failed. In this case, I'm setting all transports to a priority of IMHO, this is a useful feature to have. |
|
@diasdavid Alternatively or in addition to this, we could also allow priority be controlled from the config as well, so that we can choose which transports are preferred based on environment conditions. |
|
Going to skip this, for now. |
adding priorities for transports
Related PR:
libp2p/js-libp2p-switch#217