Skip to content

Commit

Permalink
Add options to msg_touch
Browse files Browse the repository at this point in the history
  • Loading branch information
sunloverz authored and featalion committed Mar 25, 2015
1 parent a55eff8 commit ab4b2ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api_client.coffee
Expand Up @@ -166,7 +166,7 @@ class APIClient extends ironCore.Client
parseResponseBind(error, response, body, cb)
)

messageTouch: (queue_name, message_id, reservation_id, cb) ->
messageTouch: (queue_name, message_id, reservation_id, options, cb) ->
body = _.pick(options, 'timeout')
body['reservation_id'] = reservation_id;
parseResponseBind = _.bind(@parseResponse, @)
Expand Down
2 changes: 1 addition & 1 deletion src/client.coffee
Expand Up @@ -246,7 +246,7 @@ class Client
cb(error, body)
)

msg_touch: (message_id, reservation_id, cb) ->
msg_touch: (message_id, reservation_id, options, cb) ->
@api.messageTouch(@api.options.queue_name, message_id, reservation_id, options, (error, body) ->
if not error?
cb(error, body)
Expand Down

0 comments on commit ab4b2ce

Please sign in to comment.