atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

Expose epoch ID from WorkTree #175

Closed joshaber closed 5 years ago

joshaber commented 5 years ago

This lets consumers get the current epoch ID without having to get their hands on an envelope first.

as-cii commented 5 years ago

Nice, @joshaber. I extracted a common method time::Lamport::to_bytes to avoid duplication, which should also be slightly more efficient (it will definitely be in the case where we don't need a heap-allocated vector).

This was just released as v0.20.0.