MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / update_usage

Method update_usage

crates/opencode-session/src/session.rs:618–621  ·  view source on GitHub ↗

Update usage statistics

(&mut self, usage: SessionUsage)

Source from the content-addressed store, hash-verified

616
617 /// Update usage statistics
618 pub fn update_usage(&mut self, usage: SessionUsage) {
619 self.usage = Some(usage);
620 self.touch();
621 }
622
623 /// Start compacting
624 pub fn start_compacting(&mut self) {

Callers

nothing calls this directly

Calls 1

touchMethod · 0.45

Tested by

no test coverage detected