Skip to content

Commit

Permalink
Use partial import form utils
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanZRasa committed Jun 17, 2024
1 parent 5f94cab commit c2fe5a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rasa_sdk/grpc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import asyncio

import grpc
import utils
import logging
import ssl
import types
Expand Down Expand Up @@ -36,6 +35,7 @@
get_tracer_and_context,
TracerProvider,
)
from rasa_sdk.utils import check_version_compatibility, number_of_sanic_workers

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -71,7 +71,7 @@ async def webhook(
self.tracer_provider, request
)
with tracer.start_as_current_span(span_name, context=tracer_context):
utils.check_version_compatibility(request.version)
check_version_compatibility(request.version)
try:
action_call = MessageToDict(request, preserving_proto_field_name=True)
result = await self.executor.run(action_call)
Expand Down Expand Up @@ -155,7 +155,7 @@ async def run_grpc(
ssl_password: Password for the SSL key file.
endpoints: Path to the endpoints file.
"""
workers = utils.number_of_sanic_workers()
workers = number_of_sanic_workers()
server = aio.server(futures.ThreadPoolExecutor(max_workers=workers))
initialise_interrupts(server)
executor = ActionExecutor()
Expand Down

0 comments on commit c2fe5a6

Please sign in to comment.