Skip to content

Commit

Permalink
Fix event sync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alinz committed Aug 18, 2024
1 parent b0454ab commit 5f87fe1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions event/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func TestEventSync(t *testing.T) {
}()
assert.NoError(t, err)

time.Sleep(1 * time.Second)

evt, err := bus.NewEvent(
bus.WithSubject("test.1"),
bus.WithData(struct {
Expand Down
Binary file removed event/test.db
Binary file not shown.
2 changes: 2 additions & 0 deletions server/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,7 @@ func (s *Server) offlineConsumer(ctx context.Context, consumerId string) (err er
return err
}

s.consumers.Del(consumer.Subject, consumerId)

return nil
}

0 comments on commit 5f87fe1

Please sign in to comment.