Misc cleanup

This commit is contained in:
Nick Gerakines 2020-04-19 15:10:18 -04:00
parent de1b5d31b1
commit 6b3059b62f
No known key found for this signature in database
GPG Key ID: 33D43D854F96B2E4
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
package metrics
import (
"fmt"
"net/http"
"strconv"
"time"
"github.com/gin-gonic/gin"
@ -58,7 +58,7 @@ func (mm MetricsMiddleware) Handle(c *gin.Context) {
start := time.Now()
c.Next()
status := fmt.Sprintf("%d", c.Writer.Status())
status := strconv.Itoa(c.Writer.Status())
endpoint := c.FullPath()
method := c.Request.Method