From ec482bc00eaf670bff1175b300cd7ac73d9a4869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Tue, 25 Feb 2020 23:08:59 +0800 Subject: [PATCH] Format. --- pkg/hypervisor/config.go | 1 - pkg/hypervisor/hypervisor.go | 3 +-- pkg/visor/visor.go | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/hypervisor/config.go b/pkg/hypervisor/config.go index 224158aaf7..ec4d948022 100644 --- a/pkg/hypervisor/config.go +++ b/pkg/hypervisor/config.go @@ -9,7 +9,6 @@ import ( "time" "github.com/SkycoinProject/dmsg/cipher" - "github.com/SkycoinProject/dmsg/httputil" "github.com/SkycoinProject/skywire-mainnet/internal/skyenv" diff --git a/pkg/hypervisor/hypervisor.go b/pkg/hypervisor/hypervisor.go index 01612eed0f..f1c0ef77e8 100644 --- a/pkg/hypervisor/hypervisor.go +++ b/pkg/hypervisor/hypervisor.go @@ -24,7 +24,6 @@ import ( "github.com/google/uuid" "github.com/SkycoinProject/skywire-mainnet/internal/skyenv" - "github.com/SkycoinProject/skywire-mainnet/pkg/app" "github.com/SkycoinProject/skywire-mainnet/pkg/routing" "github.com/SkycoinProject/skywire-mainnet/pkg/visor" @@ -158,7 +157,7 @@ func (m *Hypervisor) ServeHTTP(w http.ResponseWriter, req *http.Request) { r.Get("/visors/{pk}", m.getVisor()) r.Get("/visors/{pk}/health", m.getHealth()) r.Get("/visors/{pk}/uptime", m.getUptime()) - r.Get("/visors/{pk}/pty", nil) + r.Get("/visors/{pk}/pty", m.getPty()) r.Get("/visors/{pk}/apps", m.getApps()) r.Get("/visors/{pk}/apps/{app}", m.getApp()) r.Put("/visors/{pk}/apps/{app}", m.putApp()) diff --git a/pkg/visor/visor.go b/pkg/visor/visor.go index 84fe32f99c..ff5a3c8c06 100644 --- a/pkg/visor/visor.go +++ b/pkg/visor/visor.go @@ -26,7 +26,6 @@ import ( "github.com/SkycoinProject/skycoin/src/util/logging" "github.com/SkycoinProject/skywire-mainnet/internal/skyenv" - "github.com/SkycoinProject/skywire-mainnet/pkg/app/appcommon" "github.com/SkycoinProject/skywire-mainnet/pkg/app/appnet" "github.com/SkycoinProject/skywire-mainnet/pkg/app/appserver"