from ..errors import UsageError
from ..db import status
from ..db.connection import Connection, connect
from ..errors import UsageError
from ..db import status
from ..db.connection import Connection, connect
from osmium.replication.server import ReplicationServer
from osmium import WriteHandler
from osmium import version as pyo_version
from osmium.replication.server import ReplicationServer
from osmium import WriteHandler
from osmium import version as pyo_version
def init_replication(conn: Connection, base_url: str,
socket_timeout: int = 60) -> None:
""" Set up replication for the server at the given base URL.
def init_replication(conn: Connection, base_url: str,
socket_timeout: int = 60) -> None:
""" Set up replication for the server at the given base URL.
if self.session is not None:
return self.session.get(url.get_full_url(),
if self.session is not None:
return self.session.get(url.get_full_url(),