Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Mar 23, 2024
1 parent 4071a44 commit a71a359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/sonar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func Sonar(cctx *cli.Context) error {

logger.Info("connecting to WebSocket", "url", u.String())
c, _, err := websocket.DefaultDialer.Dial(u.String(), http.Header{
"User-Agent": []string{"sonar/1.0"},
"User-Agent": []string{"sonar/1.1"},
})
if err != nil {
logger.Info("failed to connect to websocket", "err", err)
Expand Down
2 changes: 1 addition & 1 deletion sonar/sonar.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (s *Sonar) HandleStreamEvent(ctx context.Context, xe *events.XRPCStreamEven
eventsProcessedCounter.WithLabelValues("identity", s.SocketURL).Inc()
now := time.Now()
s.ProgMux.Lock()
s.Progress.LastSeq = xe.RepoHandle.Seq
s.Progress.LastSeq = xe.RepoIdentity.Seq
s.Progress.LastSeqProcessedAt = now
s.ProgMux.Unlock()
case xe.RepoInfo != nil:
Expand Down

0 comments on commit a71a359

Please sign in to comment.