mirror of https://github.com/jetkvm/kvm.git
Compare commits
2 Commits
0ef128e6f2
...
f9bc3d66d6
| Author | SHA1 | Date |
|---|---|---|
|
|
f9bc3d66d6 | |
|
|
dd387e21bd |
4
ota.go
4
ota.go
|
|
@ -261,7 +261,9 @@ 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
|
||||||
fileToHash.Close()
|
if err := fileToHash.Close(); err != nil {
|
||||||
|
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