fix: message id type inonsistency in handle ihave and message id parsing improvement in handle iwant

This commit is contained in:
unniznd
2025-08-15 13:53:24 +05:30
parent 90f143cd88
commit dc04270c19
3 changed files with 43 additions and 10 deletions

View File

@ -37,3 +37,4 @@ SyncValidatorFn = Callable[[ID, rpc_pb2.Message], bool]
AsyncValidatorFn = Callable[[ID, rpc_pb2.Message], Awaitable[bool]]
ValidatorFn = Union[SyncValidatorFn, AsyncValidatorFn]
UnsubscribeFn = Callable[[], Awaitable[None]]
MessageID = NewType("MessageID", str)