Skip to content

time block in logger only#128

Merged
jr1221 merged 2 commits into
mainfrom
time-block-on-logger-only
Jun 14, 2026
Merged

time block in logger only#128
jr1221 merged 2 commits into
mainfrom
time-block-on-logger-only

Conversation

@jr1221

@jr1221 jr1221 commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Changes

Explanation of changes goes here

Notes

Any other notes go here

Test Cases

  • Case A
  • Edge case
  • ...

To Do

Any remaining things that need to get done

  • item 1
  • ...

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please reach out to your Project Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • No merge conflicts
  • All checks passing
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes # (issue #)

Comment thread src/logger.rs
// time is wrong for a while upon boot. hold on until it is OK
while !SystemTime::now()
.duration_since(UNIX_EPOCH)
.is_ok_and(|time| time > Duration::from_millis(1730247194876))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this timeout in ms arbitrary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is like the year 2000 or something. its to check for a "sane" time.

Comment thread src/mqtt_handler.rs
.set_clean_start(false)
.set_connection_timeout(3)
// .set_session_expiry_interval(Some(u32::MAX))
.set_topic_alias_max(Some(600));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the problem with topic aliases?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah the way rumqttc does them is fucked. It is causing mosquitto to give warnings and nanoMQ to outright fail, and it is useless since Scylla requires topic aliases are disabled.

@jr1221
jr1221 merged commit 7be45fa into main Jun 14, 2026
1 check passed
@jr1221
jr1221 deleted the time-block-on-logger-only branch June 14, 2026 00:51
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