Skip to content

Commit

Permalink
refactor submitRequest to executeRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed Sep 6, 2024
1 parent 3e5ac28 commit 020fb6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dot/parachain/candidate-validation/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (v *host) validate(msg *ValidationTask) (*ValidationResult, error) {
}

// submit request
return v.workerPool.submitRequest(msg)
return v.workerPool.executeRequest(msg)
}

// performBasicChecks Does basic checks of a candidate. Provide the encoded PoV-block.
Expand Down
4 changes: 2 additions & 2 deletions dot/parachain/candidate-validation/worker_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ func (v *workerPool) newValidationWorker(validationCode parachaintypes.Validatio
return nil
}

// submitRequest given a request, the worker pool will get the worker for a given task and submit the request
// executeRequest given a request, the worker pool will get the worker for a given task and submit the request
// to the worker. The worker will execute the request and return the result. If the worker does not exist, a new worker
// will be created and the request will be submitted to the worker.
func (v *workerPool) submitRequest(msg *ValidationTask) (*ValidationResult, error) {
func (v *workerPool) executeRequest(msg *ValidationTask) (*ValidationResult, error) {
validationCodeHash := msg.ValidationCode.Hash()

// create worker if not in pool
Expand Down

0 comments on commit 020fb6f

Please sign in to comment.