refactor(endpoints): remove time.Sleep call

pull/2462/head
Anthony Lapenna 2018-11-13 15:19:29 +13:00
parent 381ab81fdd
commit cf370f6a4c
1 changed files with 0 additions and 3 deletions

View File

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