We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 975266b commit 40a642eCopy full SHA for 40a642e
service/service.go
@@ -131,20 +131,11 @@ func (app *App) Start(ctx context.Context) error {
131
}()
132
}
133
134
- handle := func() error {
135
- select {
136
- case err := <-errs:
137
- return err
138
- case <-ctx.Done():
139
- return context.Canceled
140
- }
141
142
-
143
- zap.L().Debug("starting service main loop")
144
- for {
145
- if err := handle(); err != nil {
146
147
+ select {
+ case err := <-errs:
+ return err
+ case <-ctx.Done():
+ return context.Canceled
148
149
150
0 commit comments