aboutsummaryrefslogtreecommitdiff
path: root/lib/anubis.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/anubis.go')
-rw-r--r--lib/anubis.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/anubis.go b/lib/anubis.go
index 762c6aa..269df5d 100644
--- a/lib/anubis.go
+++ b/lib/anubis.go
@@ -152,7 +152,11 @@ func New(opts Options) (*Server, error) {
return nil, fmt.Errorf("can't load static/wasm/%s: %w", finfo.Name(), err)
}
- result.validators[name] = runner
+ var concurrentLimit int64 = 4
+
+ cv := NewConcurrentVerifier(runner, concurrentLimit)
+
+ result.validators[name] = cv
}
mux := http.NewServeMux()