Skip to content

Commit d54fffc

Browse files
authored
feat: add alias call service (#635)
1 parent cedef70 commit d54fffc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/rai_core/rai/communication/base_connector.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,14 @@ def general_callback_preprocessor(self, message: Any) -> T:
256256
"""
257257
raise NotImplementedError("This method should be implemented by the subclass.")
258258

259+
def call_service(
260+
self, message: T, target: str, timeout_sec: float, **kwargs: Optional[Any]
261+
) -> BaseMessage:
262+
"""
263+
Alias for service_call method.
264+
"""
265+
return self.service_call(message, target, timeout_sec, **kwargs)
266+
259267
def service_call(
260268
self, message: T, target: str, timeout_sec: float, **kwargs: Optional[Any]
261269
) -> BaseMessage:

0 commit comments

Comments
 (0)