Compare commits

...

2 Commits

Author SHA1 Message Date
Marc Brooks f9bc3d66d6
Update ota.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-04 00:51:43 -05:00
Marc Brooks dd387e21bd
Update ui/src/routes/devices.$id.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-04 00:51:12 -05:00
2 changed files with 4 additions and 2 deletions

4
ota.go
View File

@ -261,7 +261,9 @@ func verifyFile(path string, expectedHash string, verifyProgress *float32, scope
}
// 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))
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")

View File

@ -589,7 +589,7 @@ export default function KvmIdRoute() {
api.POST(`${CLOUD_API}/webrtc/turn_activity`, {
bytesReceived: bytesReceivedDelta,
bytesSent: bytesSentDelta,
}).catch(()=>{
}).catch(() => {
// we don't care about errors here, but we don't want unhandled promise rejections
});
}, 10000);