refactor: adjust BootstrapWorkers function call in server.go to change the order of returned values, improving clarity in dependency management for backend, registry, and pool.
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"evobgp/internal/jobs"
|
||||
"evobgp/internal/store"
|
||||
@@ -41,7 +40,7 @@ type Options struct {
|
||||
|
||||
// New constructs Server and wiring for async jobs.
|
||||
func New(opts Options) (*Server, error) {
|
||||
backend, pool, reg, err := BootstrapWorkers(context.Background(), opts)
|
||||
backend, reg, pool, err := BootstrapWorkers(context.Background(), opts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user