Skip to content

fix: update default maxlen for ScanStorage to 3#961

Open
wakonig wants to merge 1 commit into
mainfrom
fix/trim_live_data
Open

fix: update default maxlen for ScanStorage to 3#961
wakonig wants to merge 1 commit into
mainfrom
fix/trim_live_data

Conversation

@wakonig

@wakonig wakonig commented Jun 16, 2026

Copy link
Copy Markdown
Member

Description

It should be enough to keep the last 3 elements in memory. Everything else can be fetched from the bec history.

Copilot AI review requested due to automatic review settings June 16, 2026 14:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces in-memory retention for ScanStorage by lowering the default maximum number of stored ScanItems, relying on history retrieval for older scans.

Changes:

  • Update ScanStorage default maxlen from 100 to 3.
  • Align the ScanStorage docstring to reflect the new default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"""

def __init__(self, scan_manager: ScanManager, maxlen=100, init_scan_number=0) -> None:
def __init__(self, scan_manager: ScanManager, maxlen=3, init_scan_number=0) -> None:
"""

def __init__(self, scan_manager: ScanManager, maxlen=100, init_scan_number=0) -> None:
def __init__(self, scan_manager: ScanManager, maxlen=3, init_scan_number=0) -> None:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants