|
15 | 15 | ) |
16 | 16 | from slack_bolt.request.async_request import AsyncBoltRequest |
17 | 17 | from slack_bolt.response import BoltResponse |
18 | | -from slack_bolt.util.utils import create_copy, name_for_callable |
| 18 | +from slack_bolt.util.utils import create_copy, get_name_for_callable |
19 | 19 |
|
20 | 20 |
|
21 | 21 | class AsyncioListenerRunner: |
@@ -71,7 +71,7 @@ async def run( |
71 | 71 |
|
72 | 72 | for lazy_func in listener.lazy_functions: |
73 | 73 | if request.lazy_function_name: |
74 | | - func_name = name_for_callable(lazy_func) |
| 74 | + func_name = get_name_for_callable(lazy_func) |
75 | 75 | if func_name == request.lazy_function_name: |
76 | 76 | await self.lazy_listener_runner.run( |
77 | 77 | function=lazy_func, request=request |
@@ -128,7 +128,7 @@ async def run_ack_function_asynchronously( |
128 | 128 |
|
129 | 129 | for lazy_func in listener.lazy_functions: |
130 | 130 | if request.lazy_function_name: |
131 | | - func_name = name_for_callable(lazy_func) |
| 131 | + func_name = get_name_for_callable(lazy_func) |
132 | 132 | if func_name == request.lazy_function_name: |
133 | 133 | await self.lazy_listener_runner.run( |
134 | 134 | function=lazy_func, request=request |
@@ -163,7 +163,7 @@ def _start_lazy_function( |
163 | 163 | self, lazy_func: Callable[..., Awaitable[None]], request: AsyncBoltRequest |
164 | 164 | ) -> None: |
165 | 165 | # Start a lazy function asynchronously |
166 | | - func_name: str = name_for_callable(lazy_func) |
| 166 | + func_name: str = get_name_for_callable(lazy_func) |
167 | 167 | self.logger.debug(debug_running_lazy_listener(func_name)) |
168 | 168 | copied_request = self._build_lazy_request(request, func_name) |
169 | 169 | self.lazy_listener_runner.start(function=lazy_func, request=copied_request) |
|
0 commit comments