Skip to content

Commit

Permalink
fix: applied requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Nov 30, 2023
1 parent 78c06b2 commit f9b15e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1/bandwidth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions api/v1/latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f9b15e3

Please sign in to comment.