Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ available
Method
available
nodedb-mem/src/governor.rs:90–93 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
88
}
89
90
fn available(&self) -> usize {
91
let alloc = self.allocated.load(Ordering::Relaxed);
92
self.limit.saturating_sub(alloc)
93
}
94
}
95
96
/// Configuration for the memory governor.
Callers
1
try_reserve
Method · 0.45
Calls
1
load
Method · 0.45
Tested by
no test coverage detected