updates to move_nodes and emane_pathlosses type hinting and naming

This commit is contained in:
Blake Harnden 2020-06-03 14:58:29 -07:00
parent e74481df34
commit 29d09c8397
2 changed files with 6 additions and 4 deletions

View file

@ -1232,15 +1232,15 @@ class CoreGrpcClient:
return self.stub.WlanLink(request)
def emane_pathlosses(
self, pathloss_iter: Iterable[EmanePathlossesRequest]
self, pathloss_iterator: Iterable[EmanePathlossesRequest]
) -> EmanePathlossesResponse:
"""
Stream EMANE pathloss events.
:param pathloss_iter: iterator for sending EMANE pathloss events
:param pathloss_iterator: iterator for sending EMANE pathloss events
:return: EMANE pathloss response
"""
return self.stub.EmanePathlosses(pathloss_iter)
return self.stub.EmanePathlosses(pathloss_iterator)
def connect(self) -> None:
"""

View file

@ -695,7 +695,9 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
return core_pb2.GetNodeResponse(node=node_proto, interfaces=interfaces)
def MoveNodes(
self, request_iterator, context: ServicerContext
self,
request_iterator: Iterable[core_pb2.MoveNodesRequest],
context: ServicerContext,
) -> core_pb2.MoveNodesResponse:
"""
Stream node movements