mirror of https://github.com/jetkvm/kvm.git
refactor: Improve metric help text and standardize comparison operator in KvmIdRoute
This commit is contained in:
parent
0e61d9837a
commit
5b80ef9b62
2
cloud.go
2
cloud.go
|
@ -76,7 +76,7 @@ var (
|
||||||
metricConnectionTotalPingCount = promauto.NewCounter(
|
metricConnectionTotalPingCount = promauto.NewCounter(
|
||||||
prometheus.CounterOpts{
|
prometheus.CounterOpts{
|
||||||
Name: "jetkvm_connection_total_ping_count",
|
Name: "jetkvm_connection_total_ping_count",
|
||||||
Help: "The total number of pings sent to the",
|
Help: "The total number of pings sent to the connection",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
metricConnectionSessionRequestCount = promauto.NewCounter(
|
metricConnectionSessionRequestCount = promauto.NewCounter(
|
||||||
|
|
|
@ -287,7 +287,7 @@ export default function KvmIdRoute() {
|
||||||
if (ignoreOffer.current) return;
|
if (ignoreOffer.current) return;
|
||||||
|
|
||||||
// Set so we don't accept an answer while we're setting the remote description
|
// Set so we don't accept an answer while we're setting the remote description
|
||||||
isSettingRemoteAnswerPending.current = parsedMessage.type == "answer";
|
isSettingRemoteAnswerPending.current = parsedMessage.type === "answer";
|
||||||
console.log(
|
console.log(
|
||||||
"[Websocket] Setting remote answer pending",
|
"[Websocket] Setting remote answer pending",
|
||||||
isSettingRemoteAnswerPending.current,
|
isSettingRemoteAnswerPending.current,
|
||||||
|
|
Loading…
Reference in New Issue