File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change 2
2
from typing import Optional
3
3
4
4
from algoliasearch .http .base_config import BaseConfig
5
- from algoliasearch .http .hosts import CallType , Host , HostsCollection
5
+ from algoliasearch .http .hosts import Host , HostsCollection
6
6
from algoliasearch .http .user_agent import UserAgent
7
7
8
8
@@ -32,19 +32,7 @@ def __init__(
32
32
33
33
self .hosts = HostsCollection (
34
34
[
35
- Host (
36
- url = "{}-dsn.algolia.net" .format (self .app_id ),
37
- priority = 10 ,
38
- accept = CallType .READ ,
39
- ),
40
- Host (
41
- url = "{}.algolia.net" .format (self .app_id ),
42
- priority = 10 ,
43
- accept = CallType .WRITE ,
44
- ),
45
- Host ("{}-1.algolianet.com" .format (self .app_id )),
46
- Host ("{}-2.algolianet.com" .format (self .app_id )),
47
- Host ("{}-3.algolianet.com" .format (self .app_id )),
48
- ],
49
- reorder_hosts = True ,
35
+ Host ("usage.algolia.com" ),
36
+ Host ("usage-dev.algolia.com" ),
37
+ ]
50
38
)
You can’t perform that action at this time.
0 commit comments