We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3f6fb commit 6813222Copy full SHA for 6813222
lib/context.ml
@@ -95,6 +95,7 @@ let refresh_state ctx =
95
match get_local_file path with
96
| Error e -> fmt_error "error while getting local file: %s\nfailed to get state from file %s" e path
97
| Ok file ->
98
+ (* todo: extract state related parts to state.ml *)
99
let state = { ctx.state with state = State_j.state_of_string file } in
100
Ok { ctx with state }
101
end
lib/state.ml
@@ -4,7 +4,7 @@ open Devkit
4
5
type t = {
6
state : State_t.state;
7
- lock : Lwt_mutex.t;
+ lock : Lwt_mutex.t; (** protect access to mutable string map `pipeline_statuses` *)
8
}
9
10
let empty_repo_state () : State_t.repo_state = { pipeline_statuses = StringMap.empty }
0 commit comments