Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relay --time-seq for firehouse loosely bound to now #846

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brianolson
Copy link
Contributor

No description provided.

@@ -443,7 +447,16 @@ func (dp *DiskPersistence) doPersist(ctx context.Context, j persistJob) error {
b := j.Bytes
e := j.Evt
seq := dp.curSeq
dp.curSeq++
if dp.timeSequence {
nextSeq := time.Now().UnixMicro()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scroll down about 40 lines to discover why this may break the relay

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. will need to keep a separate event counter if seq isn't it, and the playback logic needs some touchup too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed fragmentation via event counter, and fixed replay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants