File tree 4 files changed +17
-11
lines changed
4 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 8
8
from starlette .requests import Request as FastApiRequest
9
9
from starlette .responses import Response as FastApiResponse , StreamingResponse
10
10
11
- from config import sidecar_config
12
- from startup .remote_config import get_remote_config
11
+ from horizon . config import sidecar_config
12
+ from horizon . startup .remote_config import get_remote_config
13
13
14
14
15
15
class FactsClient :
Original file line number Diff line number Diff line change 3
3
from fastapi import Depends , Request , HTTPException
4
4
from opal_client import OpalClient
5
5
6
- from config import sidecar_config
7
- from facts .update_subscriber import DataUpdateSubscriber
6
+ from horizon . config import sidecar_config
7
+ from horizon . facts .update_subscriber import DataUpdateSubscriber
8
8
9
9
10
10
def get_opal_client (request : Request ) -> OpalClient :
Original file line number Diff line number Diff line change 5
5
from opal_common .fetcher .providers .http_fetch_provider import HttpFetcherConfig
6
6
from opal_common .schemas .data import DataSourceEntry , DataUpdate
7
7
8
- from config import sidecar_config
9
- from startup .remote_config import get_remote_config
8
+ from horizon . config import sidecar_config
9
+ from horizon . startup .remote_config import get_remote_config
10
10
11
11
12
12
@cache
Original file line number Diff line number Diff line change 10
10
from loguru import logger
11
11
from opal_common .schemas .data import DataSourceEntry
12
12
13
- from authentication import enforce_pdp_token
14
- from facts .client import FactsClientDependency , FactsClient
15
- from facts .dependencies import DataUpdateSubscriberDependency , WaitTimeoutDependency
16
- from facts .opal_forwarder import create_data_source_entry , create_data_update_entry
17
- from facts .update_subscriber import DataUpdateSubscriber
13
+ from horizon .authentication import enforce_pdp_token
14
+ from horizon .facts .client import FactsClientDependency , FactsClient
15
+ from horizon .facts .dependencies import (
16
+ DataUpdateSubscriberDependency ,
17
+ WaitTimeoutDependency ,
18
+ )
19
+ from horizon .facts .opal_forwarder import (
20
+ create_data_source_entry ,
21
+ create_data_update_entry ,
22
+ )
23
+ from horizon .facts .update_subscriber import DataUpdateSubscriber
18
24
19
25
facts_router = APIRouter (dependencies = [Depends (enforce_pdp_token )])
20
26
You can’t perform that action at this time.
0 commit comments