MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / truncateSessionID

Function truncateSessionID

sdk/cliproxy/auth/selector.go:483–488  ·  view source on GitHub ↗

truncateSessionID shortens session ID for logging (first 8 chars + "...")

(id string)

Source from the content-addressed store, hash-verified

481
482// truncateSessionID shortens session ID for logging (first 8 chars + "...")
483func truncateSessionID(id string) string {
484 if len(id) <= 20 {
485 return id
486 }
487 return id[:8] + "..."
488}
489
490// Stop releases resources held by the selector.
491func (s *SessionAffinitySelector) Stop() {

Callers 1

PickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected