mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 07:21:26 +02:00
add delay after error while watching change fix
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"net/http"
|
||||
"reflect"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/docker/cli/cli/connhelper"
|
||||
"github.com/docker/docker/api/types"
|
||||
@@ -197,6 +198,7 @@ func (p *Provider) grWatchDockerChanges() {
|
||||
p.BuildStartRoutes()
|
||||
case err := <-errChan:
|
||||
p.Logf("Event", "error %s", err)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
msgChan, errChan = p.dockerClient.Events(context.Background(), types.EventsOptions{Filters: filter})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user