Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Jun 28, 2022
1 parent c990ca0 commit 058d769
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/receiver/rawk8seventsreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ func (r *rawK8sEventsReceiver) recordEventReceived(event *corev1.Event) {
return
}

r.storage.Set(r.ctx, latestResourceVersionStorageKey, []byte(event.ResourceVersion))
err := r.storage.Set(r.ctx, latestResourceVersionStorageKey, []byte(event.ResourceVersion))
if err != nil {
r.logger.Warn("failed to record event received", zap.Error(err), zap.String("incoming_resource_version", event.ResourceVersion))
}
}

// Check if we should process the event.
Expand Down

0 comments on commit 058d769

Please sign in to comment.