refactor(endpoints): remove time.Sleep call

pull/2462/head
Anthony Lapenna 6 years ago
parent 381ab81fdd
commit cf370f6a4c

@ -3,7 +3,6 @@ package endpoints
import (
"log"
"net/http"
"time"
httperror "github.com/portainer/libhttp/error"
"github.com/portainer/libhttp/response"
@ -22,8 +21,6 @@ func (handler *Handler) endpointSnapshot(w http.ResponseWriter, r *http.Request)
continue
}
time.Sleep(10 * time.Second)
snapshot, snapshotError := handler.Snapshotter.CreateSnapshot(&endpoint)
latestEndpointReference, err := handler.EndpointService.Endpoint(endpoint.ID)

Loading…
Cancel
Save