From f9b15e36da1d542db197f3669ad3d327515f3a8a Mon Sep 17 00:00:00 2001 From: Mojtaba Date: Thu, 30 Nov 2023 14:07:20 +0100 Subject: [PATCH] fix: applied requested changes --- api/v1/bandwidth.go | 2 +- api/v1/latency.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/bandwidth.go b/api/v1/bandwidth.go index 4f27102..d5e51e3 100644 --- a/api/v1/bandwidth.go +++ b/api/v1/bandwidth.go @@ -38,7 +38,7 @@ func (a *RESTApiV1) BandwidthStart(resp http.ResponseWriter, req *http.Request) Type: APIMetaMessageTypeError, Slug: SlugTypeError, Title: "Type cast error", - Message: "could not cast netRestrictService.service to *packetloss.PacketLoss", + Message: "could not cast netRestrictService.service to *bandwidth.Bandwidth", }, http.StatusInternalServerError) return diff --git a/api/v1/latency.go b/api/v1/latency.go index 75594dc..5eb15f2 100644 --- a/api/v1/latency.go +++ b/api/v1/latency.go @@ -9,7 +9,7 @@ import ( "go.uber.org/zap" ) -// PacketlossStart implements POST /packetloss/start +// LatencyStart implements POST /latency/start func (a *RESTApiV1) LatencyStart(resp http.ResponseWriter, req *http.Request) { var body LatencyStartRequest if err := json.NewDecoder(req.Body).Decode(&body); err != nil { @@ -40,7 +40,7 @@ func (a *RESTApiV1) LatencyStart(resp http.ResponseWriter, req *http.Request) { Type: APIMetaMessageTypeError, Slug: SlugTypeError, Title: "Type cast error", - Message: "could not cast netRestrictService.service to *packetloss.PacketLoss", + Message: "could not cast netRestrictService.service to *latency.Latency", }, http.StatusInternalServerError) return