Skip to content

Remove old memory dependency#813

Open
jfantinhardesty wants to merge 1 commit intomainfrom
remove_old_memory_dependency
Open

Remove old memory dependency#813
jfantinhardesty wants to merge 1 commit intomainfrom
remove_old_memory_dependency

Conversation

@jfantinhardesty
Copy link
Contributor

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

Remove memory dependency which has not been updated in 5 years. Replaces call to get free memory with psutil library which we already include in cloudfuse.

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

Comment on lines +449 to +452
v, err := mem.VirtualMemory()
if err != nil {
return err
}
Copy link
Contributor

@foodprocessor foodprocessor Feb 2, 2026

Choose a reason for hiding this comment

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

Maybe we should rather default to a reasonable choice for StreamOnly, instead of returning this error?
My AI tells me the error would be extremely rare, but even so, I don't see the point of letting it crash the operation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Similar thought could be put into the other places where this is used, since it introduces a new exception path in every case.

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