Skip to content

Commit

Permalink
Refine some log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Mar 11, 2024
1 parent f9325dc commit b7ce2f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nautilus_core/adapters/src/databento/python/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ impl DatabentoLiveClient {
callback_pyo3: PyObject,
) -> PyResult<&'py PyAny> {
if self.is_closed {
return Err(to_pyruntime_err("Client is already closed"));
return Err(to_pyruntime_err("Client already closed"));
};
if self.is_running {
return Err(to_pyruntime_err("Client is already running"));
return Err(to_pyruntime_err("Client already running"));
};

debug!("Starting client");
Expand Down Expand Up @@ -230,10 +230,10 @@ impl DatabentoLiveClient {
#[pyo3(name = "close")]
fn py_close(&mut self) -> PyResult<()> {
if !self.is_running {
return Err(to_pyruntime_err("Client was never started"));
return Err(to_pyruntime_err("Client never started"));
};
if self.is_closed {
return Err(to_pyruntime_err("Client is already closed"));
return Err(to_pyruntime_err("Client already closed"));
};

debug!("Closing client");
Expand Down

0 comments on commit b7ce2f8

Please sign in to comment.