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(
|
||||
prometheus.CounterOpts{
|
||||
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(
|
||||
|
|
|
@ -287,7 +287,7 @@ export default function KvmIdRoute() {
|
|||
if (ignoreOffer.current) return;
|
||||
|
||||
// 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(
|
||||
"[Websocket] Setting remote answer pending",
|
||||
isSettingRemoteAnswerPending.current,
|
||||
|
|
Loading…
Reference in New Issue