From f49890e12d7eb6a766b966438cd475f7cbf5081b Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Thu, 8 Oct 2026 00:59:05 -0300 Subject: rework evaluators and add schema scope --- lib/kernel/Session.ml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/kernel/Session.ml') diff --git a/lib/kernel/Session.ml b/lib/kernel/Session.ml index 4bce1ac..1abd278 100644 --- a/lib/kernel/Session.ml +++ b/lib/kernel/Session.ml @@ -2,7 +2,7 @@ module Make (S : Abstract.Storage.STORAGE) = struct module SI = Storage.Make (S) module B = Branch.Make (S) - class session ?evaluators storage state = + class session storage state = object (self) inherit Lifecycle.exclusive inherit Identity.of_id @@ -18,11 +18,10 @@ module Make (S : Abstract.Storage.STORAGE) = struct function | "branch" -> SI.with_read storage (fun tx -> - B.load ?evaluators tx storage (Atomic.get state).Protocols.Session.snapshot ) + B.load tx storage (Atomic.get state).Protocols.Session.snapshot ) |> Result.map Option.some | _ -> Ok None end - let make ?evaluators storage state = - new session ?evaluators storage state |> Protocols.Handle.make + let make storage state = new session storage state |> Protocols.Handle.make end -- cgit v1.2.3