Fix all linting errors found by cross-lint

Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
This commit is contained in:
Gunjan Vyas
2025-08-21 08:49:24 +05:30
parent 17ec0009ce
commit c60cf839d6
6 changed files with 47 additions and 20 deletions

View File

@@ -100,12 +100,16 @@ func main() {
}
logrus.Debug("Setting up proxies")
setupProxies(ctx, group, sources, dests, identities)
err = setupProxies(ctx, group, sources, dests, identities)
if err != nil {
logrus.Errorf("Error setting up proxies: %v", err)
return
}
// Wait for cmopletion (cancellation) or error
// Wait for completion (cancellation) or error
if err := group.Wait(); err != nil {
logrus.Errorf("Error occured in execution group: " + err.Error())
os.Exit(1)
logrus.Errorf("Error occurred in execution group: " + err.Error())
return
}
}