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

Listening to multiple queues #17

Merged
merged 1 commit into from
Sep 26, 2017
Merged

Conversation

guilhermef
Copy link
Contributor

Listens to multiple queues and routes the message to the desired app.

@guilhermef guilhermef force-pushed the listenin-multiple-queues branch 3 times, most recently from 3bb5ae5 to 91427d1 Compare September 25, 2017 20:57
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 85.326% when pulling 91427d1 on listenin-multiple-queues into 189aa5e on master.

Copy link
Contributor

@cscatolini cscatolini left a comment

Choose a reason for hiding this comment

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

LGTM

Expect(handler.run).To(BeTrue())
})
})
// Describe("Handle Messages", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this test commented?

Expect(handler.run).To(BeTrue())
})
})
// Describe("Handle Messages", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this test also commented?

l := t.Logger.WithFields(logrus.Fields{
"method": "HandleToken",
"token": token,
})
l.Debug("deleting token")
query := fmt.Sprintf("DELETE FROM %s WHERE token = ?0;", t.tableName)
query := fmt.Sprintf("DELETE FROM %s WHERE token = ?0;", game+"_"+platform)
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure all games respect this rule =(

Copy link
Contributor

Choose a reason for hiding this comment

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

omg, we need to be sure @guilhermef

@coveralls
Copy link

coveralls commented Sep 25, 2017

Coverage Status

Coverage decreased (-1.3%) to 85.206% when pulling 91427d1 on listenin-multiple-queues into 189aa5e on master.

Copy link
Contributor

@felipejfc felipejfc left a comment

Choose a reason for hiding this comment

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

lgtm, we just need to be sure about the token_pg extension table name

l := t.Logger.WithFields(logrus.Fields{
"method": "HandleToken",
"token": token,
})
l.Debug("deleting token")
query := fmt.Sprintf("DELETE FROM %s WHERE token = ?0;", t.tableName)
query := fmt.Sprintf("DELETE FROM %s WHERE token = ?0;", game+"_"+platform)
Copy link
Contributor

Choose a reason for hiding this comment

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

omg, we need to be sure @guilhermef

@coveralls
Copy link

coveralls commented Sep 25, 2017

Coverage Status

Coverage decreased (-1.1%) to 85.408% when pulling 36bcdcf on listenin-multiple-queues into 189aa5e on master.

@coveralls
Copy link

coveralls commented Sep 25, 2017

Coverage Status

Coverage decreased (-1.1%) to 85.408% when pulling 36bcdcf on listenin-multiple-queues into 189aa5e on master.

@guilhermef guilhermef merged commit 7f7d7b6 into master Sep 26, 2017
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.

4 participants