Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smaller cleanups/fixes #419

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mtda/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def config_set_power_timeout(self, timeout, session=None):
self._power_timeout = timeout
if timeout == 0:
self._power_expiry = None
self._session_check()
self._session_check(session)

self.mtda.debug(3, f"main.config_set_power_timeout(): {result}")
return result
Expand All @@ -187,7 +187,7 @@ def config_set_session_timeout(self, timeout, session=None):
left = self._sessions[s] - now
if left > timeout:
self._sessions[s] = now + timeout
self._session_check()
self._session_check(session)

self.mtda.debug(3, f"main.config_set_session_timeout(): {result}")
return result
Expand Down
4 changes: 2 additions & 2 deletions mtda/storage/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def worker(self):
self.mtda.debug(3, f"storage.writer.worker(): {str(result)}")
return result

def write_raw(self, data, session=None):
def write_raw(self, data):
self.mtda.debug(3, "storage.writer.write_raw()")

result = None
Expand All @@ -152,7 +152,7 @@ def write_raw(self, data, session=None):
self.mtda.debug(3, f"storage.writer.write_raw(): {str(result)}")
return result

def write_gz(self, data, session=None):
def write_gz(self, data):
self.mtda.debug(3, "storage.writer.write_gz()")

# Create a zlib decompressor when called for the first time
Expand Down
Loading