mirror of
https://github.com/fosrl/gerbil.git
synced 2026-02-24 13:56:44 +00:00
Bump go version
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.21.5-alpine AS builder
|
FROM golang:1.23.1-alpine AS builder
|
||||||
|
|
||||||
# Set the working directory inside the container
|
# Set the working directory inside the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -579,8 +579,6 @@ func reportPeerBandwidth(apiURL string) error {
|
|||||||
return fmt.Errorf("failed to marshal bandwidth data: %v", err)
|
return fmt.Errorf("failed to marshal bandwidth data: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Debug("Reporting bandwidth data: %s", string(jsonData))
|
|
||||||
|
|
||||||
resp, err := http.Post(apiURL, "application/json", bytes.NewBuffer(jsonData))
|
resp, err := http.Post(apiURL, "application/json", bytes.NewBuffer(jsonData))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to send bandwidth data: %v", err)
|
return fmt.Errorf("failed to send bandwidth data: %v", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user