aboutsummaryrefslogtreecommitdiffstats
path: root/adapter/stats_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'adapter/stats_api.go')
-rw-r--r--adapter/stats_api.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/adapter/stats_api.go b/adapter/stats_api.go
index 798fcbd..90ecd78 100644
--- a/adapter/stats_api.go
+++ b/adapter/stats_api.go
@@ -19,14 +19,14 @@ import (
"fmt"
)
-var (
- ErrStatDirBusy = errors.New("stat dir busy")
- ErrStatDumpBusy = errors.New("stat dump busy")
+const (
+ // DefaultStatsSocket defines a default socket file path for VPP stats API.
+ DefaultStatsSocket = "/run/vpp/stats.sock"
)
var (
- // DefaultStatsSocket is the default path for the VPP stat socket file.
- DefaultStatsSocket = "/run/vpp/stats.sock"
+ ErrStatDirBusy = errors.New("stat dir busy")
+ ErrStatDumpBusy = errors.New("stat dump busy")
)
// StatsAPI provides connection to VPP stats API.