From ffa08cc6141b557bc09c8136a67c655356ffa3b4 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sun, 8 Oct 2023 17:49:40 +0200 Subject: [PATCH] chore: fix minor typos Signed-off-by: Valery Piashchynski --- builder/templates/templateV2023.go | 2 ++ github/pool.go | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/builder/templates/templateV2023.go b/builder/templates/templateV2023.go index b09107b..c763c3e 100644 --- a/builder/templates/templateV2023.go +++ b/builder/templates/templateV2023.go @@ -18,6 +18,8 @@ require ( go.uber.org/automaxprocs v1.5.2 github.com/roadrunner-server/informer/v4 latest github.com/roadrunner-server/resetter/v4 latest + github.com/roadrunner-server/rpc/v4 latest + github.com/roadrunner-server/config/v4 latest // Go module pseudo-version {{range $v := .Entries}}{{$v.Module}} {{$v.PseudoVersion}} diff --git a/github/pool.go b/github/pool.go index 0622731..fc115ff 100644 --- a/github/pool.go +++ b/github/pool.go @@ -202,13 +202,17 @@ func (p *processor) add(pjob *pcfg) { func (p *processor) errors() []error { p.mu.Lock() defer p.mu.Unlock() - return p.errs + errs := make([]error, len(p.errs)) + copy(errs, p.errs) + return errs } func (p *processor) moduleinfo() []*velox.ModulesInfo { p.mu.Lock() defer p.mu.Unlock() - return p.modinfo + modinfo := make([]*velox.ModulesInfo, len(p.modinfo)) + copy(modinfo, p.modinfo) + return modinfo } func (p *processor) wait() {