Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Nov 15, 2024
1 parent 73f8661 commit b2db6b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/leader_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,27 +912,27 @@ func (lc *leaderController) handleWriteStream(closeStreamSignal chan error, stre
lc.appendToWalStreamRequest(writeRequest, func(offset int64, timestamp uint64, err error) {
if err != nil {
latencyTimer.Done()
slog.Debug("Got an callback error when write to wal", slog.Any("error", err))
slog.Debug("Got an error when write to wal", slog.Any("error", err))
lastCallbackError.Store(&err)
return
}
lc.quorumAckTracker.WaitForCommitOffsetAsync(stream.Context(), offset, func(_ context.Context, innerErr error) {
if innerErr != nil {
latencyTimer.Done()

Check failure on line 921 in server/leader_controller.go

View workflow job for this annotation

GitHub Actions / Build & Test

Function `Done` should pass the context parameter (contextcheck)
slog.Debug("Got an callback error when commit async", slog.Any("error", err))
slog.Debug("Got an error when commit async", slog.Any("error", err))
lastCallbackError.Store(&err)
return
}
var writeResponse *proto.WriteResponse
if writeResponse, err = lc.db.ProcessWrite(writeRequest, offset, timestamp, WrapperUpdateOperationCallback); err != nil {
latencyTimer.Done()

Check failure on line 928 in server/leader_controller.go

View workflow job for this annotation

GitHub Actions / Build & Test

Function `Done` should pass the context parameter (contextcheck)
slog.Debug("Got an callback error when write to DB", slog.Any("error", err))
slog.Debug("Got an error when write to DB", slog.Any("error", err))
lastCallbackError.Store(&err)
return
}
if err = stream.Send(writeResponse); err != nil {
latencyTimer.Done()

Check failure on line 934 in server/leader_controller.go

View workflow job for this annotation

GitHub Actions / Build & Test

Function `Done` should pass the context parameter (contextcheck)
slog.Debug("Got an callback error when write response to client", slog.Any("error", err))
slog.Debug("Got an error when write response to client", slog.Any("error", err))
lastCallbackError.Store(&err)
return
}
Expand Down

0 comments on commit b2db6b8

Please sign in to comment.