Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger] Add message timestamp to amqp connection#37867

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@bzajacc
Copy link

QA
Branch?master
Bug fix?no
New feature?yes
Deprecations?no
Ticketsnone
LicenseMIT
Doc PRnone

Add default timestamp to amqp transport message.

It is useful when you logging each message, and your consumer is down, you alway get right message time when start consume again.

@bzajaccbzajaccforce-pushed thefeature/add-timestamp-to-amqp-messages branch fromf4be339 to53cb6a8CompareAugust 18, 2020 05:57

$amqpExchange->expects($this->once())->method('declareExchange');
$amqpExchange->expects($this->once())->method('publish')->with('body',null,AMQP_NOPARAM, ['headers' => [],'delivery_mode' =>2]);
$amqpExchange->expects($this->once())->method('publish')->with('body',null,AMQP_NOPARAM, ['headers' => [],'delivery_mode' =>2,'timestamp' => ClockMock::time()]);
Copy link
Member

Choose a reason for hiding this comment

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

Instead of using ClockMock directly, you should use a@group time-sensitive annotation on the test class itself.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah I see now, fixed :)

@bzajaccbzajaccforce-pushed thefeature/add-timestamp-to-amqp-messages branch from53cb6a8 to9c3989bCompareAugust 18, 2020 06:19
@bzajaccbzajaccforce-pushed thefeature/add-timestamp-to-amqp-messages branch from9c3989b to281540eCompareAugust 18, 2020 06:19
@fabpot
Copy link
Member

Thank you@bzajacc.

bzajacc reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@srozesrozeAwaiting requested review from sroze

@TobionTobionAwaiting requested review from Tobion

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@bzajacc@fabpot@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp