Skip to content

Commit 6813222

Browse files
committed
add comments
1 parent 7a3f6fb commit 6813222

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/context.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ let refresh_state ctx =
9595
match get_local_file path with
9696
| Error e -> fmt_error "error while getting local file: %s\nfailed to get state from file %s" e path
9797
| Ok file ->
98+
(* todo: extract state related parts to state.ml *)
9899
let state = { ctx.state with state = State_j.state_of_string file } in
99100
Ok { ctx with state }
100101
end

lib/state.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ open Devkit
44

55
type t = {
66
state : State_t.state;
7-
lock : Lwt_mutex.t;
7+
lock : Lwt_mutex.t; (** protect access to mutable string map `pipeline_statuses` *)
88
}
99

1010
let empty_repo_state () : State_t.repo_state = { pipeline_statuses = StringMap.empty }

0 commit comments

Comments
 (0)