Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-litvak committed Feb 25, 2015
1 parent 0093666 commit ec4c9bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 0 additions & 7 deletions src/IronSharp.IronMQ/IronMqRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ public QueueClient Queue(string name)
return new QueueClient(this, name);
}

public QueueClient Queue(string name, QueueInfo updates)
{
var queueClient = new QueueClient(this, name);
queueClient.Update(updates);
return queueClient;
}

/// <summary>
/// Get a list of all queues in a project.
/// By default, 30 queues are listed at a time.
Expand Down
4 changes: 1 addition & 3 deletions src/IronSharp.IronMQ/QueueClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,7 @@ public bool Release(string messageId, string reservationId, int? delay = null)
/// </remarks>
public MessageOptions Touch(string messageId, string reservationId, int? timeout = null)
{
var payload = new MessageOptions { ReservationId = reservationId };
if (timeout.HasValue)
payload.Timeout = timeout;
var payload = new MessageOptions { ReservationId = reservationId, Timeout = timeout};
return _restClient.Post<MessageOptions>(_client.Config, string.Format("{0}/messages/{1}/touch", EndPoint, messageId), payload);
}

Expand Down

0 comments on commit ec4c9bd

Please sign in to comment.