-
Notifications
You must be signed in to change notification settings - Fork 848
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
Fix message formatting when max scan count is exceeded. #601
Conversation
eb19acb
to
6e6411b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Added a proposal for a simpler fix.
"Search timed out after scanning %d messages. Last scanned message timestamp was %s. Adjust your time" + | ||
" span for more results.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just fix the format?
"Search timed out after scanning %d messages. Last scanned message timestamp was %s. Adjust your time" + | |
" span for more results.", | |
"Search timed out after scanning %1$d messages. Last scanned message timestamp was %2$tF %2$tT. Adjust your time" + | |
" span for more results.", |
records.getMessagesScannedCount(), | ||
records.getFinalMessageTimestamp())); | ||
records.finalMessageTimestampFormatted())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
records.finalMessageTimestampFormatted())); | |
records.getFinalMessageTimestamp())); |
I will adjust as requested today's evening! Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, except for a very small thing: the two spaces on the next line are accidentally removed.
Co-authored-by: Bert Roos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.