Skip to content

Commit 2955486

Browse files
valbersxperiandri
authored andcommitted
refactor(376): making signature more explicit
in order to improve readability. According to suggestion during code review.
1 parent fe79153 commit 2955486

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/FSharp.Data.GraphQL.Server/Executor.fs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ type Executor<'Root>(schema: ISchema<'Root>, middlewares : IExecutorMiddleware s
7474
(initialCtx : 'ctx)
7575
(onComplete : 'ctx -> 'res)
7676
: 'res =
77-
let rec go ctx = function
77+
let rec go ctx (middlewares: IExecutorMiddleware list) =
78+
match middlewares with
7879
| [] -> onComplete ctx
79-
| m : IExecutorMiddleware :: ms ->
80+
| m :: ms ->
8081
match (phaseSel m) with
8182
| Some f -> f ctx (fun ctx' -> go ctx' ms)
8283
| None -> go ctx ms

0 commit comments

Comments
 (0)