MCPcopy Create free account
hub / github.com/aws/clock-bound / new

Method new

clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:52–58  ·  view source on GitHub ↗

Creates a new ring buffer

(capacity: NonZeroUsize)

Source from the content-addressed store, hash-verified

50
51 /// Creates a new ring buffer
52 pub fn new(capacity: NonZeroUsize) -> Self {
53 Self {
54 inner: RingBuffer::new(capacity),
55 rtt_threshold_multiplier: 5,
56 window: Self::SKM_WINDOW,
57 }
58 }
59
60 pub fn with_window(capacity: NonZeroUsize, window: Duration) -> Self {
61 Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected