Skip to content

Commit cd8939d

Browse files
committed
IO: Naming things; use router instead of hub
1 parent bf5d6d0 commit cd8939d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cratedb_toolkit/cluster/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
DatabaseAddressMissingError,
2020
OperationFailed,
2121
)
22-
from cratedb_toolkit.io.hub import IoHub
22+
from cratedb_toolkit.io.router import IoRouter
2323
from cratedb_toolkit.model import ClusterAddressOptions, DatabaseAddress, InputOutputResource, TableAddress
2424
from cratedb_toolkit.util.client import jwt_token_patch
2525
from cratedb_toolkit.util.database import DatabaseAdapter
@@ -461,7 +461,7 @@ class StandaloneCluster(ClusterBase):
461461
exists: bool = False
462462
_load_table_result: t.Optional[bool] = None
463463
_client_bundle: t.Optional[ClientBundle] = None
464-
_hub: IoHub = dataclasses.field(default_factory=IoHub)
464+
_hub: IoRouter = dataclasses.field(default_factory=IoRouter)
465465

466466
def __post_init__(self):
467467
super().__init__()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
logger = logging.getLogger(__name__)
2424

2525

26-
class IoHub:
26+
class IoRouter:
2727
def load_table(
2828
self,
2929
source: InputOutputResource,

0 commit comments

Comments
 (0)