Skip to content

Commit

Permalink
fix issue: encode/httpcore#45
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Oct 25, 2022
1 parent 9b0024d commit a1975f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from dataclasses import dataclass
from typing import Optional, Type
from typing import Optional

import httpx
from fastapi import FastAPI
Expand Down Expand Up @@ -42,7 +42,7 @@ async def is_responsive(self) -> bool:

def setup_client_instance(
app: FastAPI,
api_cls: Type[BaseServiceClientApi],
api_cls: type[BaseServiceClientApi],
api_baseurl: str,
service_name: str,
api_general_timeout: float = 5.0,
Expand All @@ -55,7 +55,9 @@ def setup_client_instance(
def _create_instance() -> None:
api_cls.create_once(
app,
client=httpx.AsyncClient(http2=True, base_url=api_baseurl, timeout=api_general_timeout),
client=httpx.AsyncClient(
http2=False, base_url=api_baseurl, timeout=api_general_timeout
),
service_name=service_name,
**extra_fields
)
Expand Down
2 changes: 1 addition & 1 deletion services/docker-compose.devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
datcore-adapter:
environment:
- SC_BOOT_MODE=debug-ptvsd
- DATCORE_ADAPTER_LOG_LEVEL=DEBUG
- LOG_LEVEL=DEBUG
volumes:
- ./datcore-adapter:/devel/services/datcore-adapter
- ../packages:/devel/packages
Expand Down

0 comments on commit a1975f1

Please sign in to comment.