quickwit icon indicating copy to clipboard operation
quickwit copied to clipboard

Remove Mutex from log rate limiter

Open fulmicoton opened this issue 1 year ago • 1 comments

We could have a small platform specific solution for unix, mem::transmute Instant to a u128 on unix, and store it in two AtomicU64.

fulmicoton avatar Feb 01 '24 11:02 fulmicoton

std::time::Instant doesn't have a repr which allows sound transmuting, but we could do standard posix calls to get the values ourselves

trinity-1686a avatar Feb 01 '24 11:02 trinity-1686a