Simplify handler initialization

This commit is contained in:
Jean-Paul Calderone 2020-12-14 18:27:02 -05:00
parent 49330d1e4a
commit b77f43e360

View File

@ -669,8 +669,6 @@ def create_connection_handlers(config, i2p_provider, tor_provider):
# create that handler, so hints which want it will be ignored.
handlers = {
"tcp": _make_tcp_handler(),
}
handlers.update({
"tor": tor_provider.get_tor_handler(),
"i2p": i2p_provider.get_i2p_handler(),
})