Skip to content

Commit

Permalink
Handle snapshot end more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti committed Feb 7, 2024
1 parent 84ef4f9 commit 670adce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/hcp/telemetry/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ func (st *stateTrackerImpl) recvStream(stream pbresource.ResourceService_WatchLi
} else if ev.GetDelete() != nil {
st.logger.Info("hcp.v2.TelemetryState resource deleted, clearing from state")
st.state = nil
} else {
st.logger.Error("unexpected operation type received from WatchList stream")
} else if ev.GetEndOfSnapshot() == nil {
st.logger.Error("unexpected event operation type received from WatchList stream")
}
st.stateMu.Unlock()

Expand Down

0 comments on commit 670adce

Please sign in to comment.