main v0.0.14
parent 03d65ca7fc
commit 89391e67d8
  1. 8
      ottomain.go

@ -73,14 +73,6 @@ func ProcessRequest(script string, params map[string]interface{}) (response map[
// Initialize semaphore and config once // Initialize semaphore and config once
once.Do(initSemaphore) once.Do(initSemaphore)
// Validate input
if script == "" {
return nil, fmt.Errorf("script cannot be empty")
}
if params == nil {
return nil, fmt.Errorf("params cannot be nil")
}
// Acquire semaphore to limit concurrent executions // Acquire semaphore to limit concurrent executions
select { select {
case semaphore <- struct{}{}: case semaphore <- struct{}{}:

Loading…
Cancel
Save