2019-09-25 08:19:22 +08:00
|
|
|
from collections import OrderedDict
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
from libp2p.typing import TProtocol, StreamHandlerFn
|
|
|
|
|
|
|
|
DEFAULT_HOST_PROTOCOLS: "OrderedDict[TProtocol, StreamHandlerFn]" = OrderedDict()
|
2019-10-24 16:27:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
def get_default_protocols() -> "OrderedDict[TProtocol, StreamHandlerFn]":
|
|
|
|
return DEFAULT_HOST_PROTOCOLS.copy()
|