adjust sidecar

This commit is contained in:
Cassandra Heart 2025-03-27 05:03:13 -05:00
parent 65bf136018
commit ffca887406
No known key found for this signature in database
GPG Key ID: 6352152859385958
2 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,7 @@ RUN ./build.sh -o qclient && cp qclient /usr/bin
# Build and install sidecar
WORKDIR /opt/ceremonyclient/sidecar
RUN ./build.sh -o sidecar ./... && cp sidecar /usr/bin
RUN ./build.sh -o sidecar && cp sidecar /usr/bin
# Allows exporting single binary
FROM scratch as qclient

View File

@ -243,6 +243,10 @@ func handleClockFrame(
panic(err)
}
if head == nil {
return nil
}
if frame.FrameNumber > head.FrameNumber {
if _, err := dataTimeReel.Insert(ctx, frame); err != nil {
logger.Debug("could not insert frame", zap.Error(err))