Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
change SocketPath from var to const as it should not be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
vlorinc committed May 7, 2024
1 parent d22c9d3 commit 55ee772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/sirupsen/logrus"
)

var SocketPath = "/var/run/dpdk/rte/dpdk_telemetry.v2"
const SocketPath = "/var/run/dpdk/rte/dpdk_telemetry.v2"

func queryTelemetry(conn net.Conn, log *logrus.Logger, command string, response interface{}) {
_, err := conn.Write([]byte(command))
Expand Down

0 comments on commit 55ee772

Please sign in to comment.