Remove Docker client from NATS

Signed-off-by: Alex <alexellis2@gmail.com>
This commit is contained in:
Alex
2017-08-19 14:48:48 +01:00
committed by Alex Ellis
parent cfcb183bc7
commit fa069e412c
2 changed files with 12 additions and 16 deletions

View File

@ -8,12 +8,11 @@ import (
"github.com/Sirupsen/logrus"
"github.com/alexellis/faas/gateway/metrics"
"github.com/alexellis/faas/gateway/queue"
"github.com/docker/docker/client"
"github.com/gorilla/mux"
)
// MakeQueuedProxy accepts work onto a queue
func MakeQueuedProxy(metrics metrics.MetricOptions, wildcard bool, client *client.Client, logger *logrus.Logger, canQueueRequests queue.CanQueueRequests) http.HandlerFunc {
func MakeQueuedProxy(metrics metrics.MetricOptions, wildcard bool, logger *logrus.Logger, canQueueRequests queue.CanQueueRequests) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()