mirror of https://github.com/jetkvm/kvm.git
Compare commits
No commits in common. "f9bc3d66d6deb895f80788bf8df958f391e398d9" and "0ef128e6f2f813cb1715e8f716922523e7dba6e7" have entirely different histories.
f9bc3d66d6
...
0ef128e6f2
4
ota.go
4
ota.go
|
|
@ -261,9 +261,7 @@ func verifyFile(path string, expectedHash string, verifyProgress *float32, scope
|
||||||
}
|
}
|
||||||
|
|
||||||
// close the file so we can rename below
|
// close the file so we can rename below
|
||||||
if err := fileToHash.Close(); err != nil {
|
fileToHash.Close()
|
||||||
return fmt.Errorf("error closing file: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
hashSum := hex.EncodeToString(hash.Sum(nil))
|
hashSum := hex.EncodeToString(hash.Sum(nil))
|
||||||
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
||||||
|
|
|
||||||
|
|
@ -589,7 +589,7 @@ export default function KvmIdRoute() {
|
||||||
api.POST(`${CLOUD_API}/webrtc/turn_activity`, {
|
api.POST(`${CLOUD_API}/webrtc/turn_activity`, {
|
||||||
bytesReceived: bytesReceivedDelta,
|
bytesReceived: bytesReceivedDelta,
|
||||||
bytesSent: bytesSentDelta,
|
bytesSent: bytesSentDelta,
|
||||||
}).catch(() => {
|
}).catch(()=>{
|
||||||
// we don't care about errors here, but we don't want unhandled promise rejections
|
// we don't care about errors here, but we don't want unhandled promise rejections
|
||||||
});
|
});
|
||||||
}, 10000);
|
}, 10000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue