This commit is contained in:
swrup 2026-03-12 13:12:51 +01:00
parent e8d7b413ad
commit 932f4da38b
5 changed files with 8 additions and 8 deletions

View file

@ -175,7 +175,7 @@ let init fs =
let ht = Hashtbl.create 0xff in
Ok { fs; sm_key_priv; sm_pub; ht }
in
let now = TimeAbsolute.of_ptime (Ptime_clock.now ()) in
let now = TimeAbsolute.of_ptime (Mirage_ptime.now ()) in
let keys = List.of_seq @@ Hashtbl.to_seq_values t.ht in
let new_keys = gen_additional_keys_until_lookahead ~now keys in
List.iter (fun k -> Hashtbl.replace t.ht k.pub k) new_keys;