chore: execute goimports to format the code (#7983)

* chore: execute goimports to format the code

Signed-off-by: promalert <promalert@outlook.com>

* goimports -w .

---------

Signed-off-by: promalert <promalert@outlook.com>
Co-authored-by: Chris Lu <chris.lu@gmail.com>
This commit is contained in:
promalert
2026-01-08 05:06:08 +08:00
committed by GitHub
parent 6432019d08
commit 9012069bd7
271 changed files with 608 additions and 461 deletions

View File

@@ -1,10 +1,11 @@
package stats
import (
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
"golang.org/x/sys/windows"
"syscall"
"unsafe"
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
"golang.org/x/sys/windows"
)
var (

View File

@@ -29,7 +29,7 @@ func TestBuildInfo(t *testing.T) {
if mf.GetName() == "SeaweedFS_build_info" {
found = true
metric := mf.GetMetric()[0]
// Verify the metric value is 1
if metric.GetGauge().GetValue() != 1 {
t.Errorf("Expected BuildInfo value to be 1, got %f", metric.GetGauge().GetValue())
@@ -79,4 +79,3 @@ func TestBuildInfo(t *testing.T) {
t.Error("BuildInfo metric not found in gathered metrics")
}
}