Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Ugh 63, not 64
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Apr 21, 2023
1 parent 0112715 commit b9057ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ApiService/ApiService/onefuzzlib/ShrinkQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public ShrinkQueue(Guid poolId, IQueue queueOps, ILogTracer log)
: this(poolId.ToString("N"), queueOps, log) { }

private ShrinkQueue(string baseId, IQueue queueOps, ILogTracer log) {
var name = ShrinkQueueNamePrefix + baseId;
var name = ShrinkQueueNamePrefix + baseId.ToLowerInvariant();

// queue names can be no longer than 64 characters
// queue names can be no longer than 63 characters
// if we exceed that, trim off the end. we will still have
// sufficient random chracters to stop collisions from happening
if (name.Length > 64) {
name = name[..64];
if (name.Length > 63) {
name = name[..63];
}

QueueName = name;
Expand Down

0 comments on commit b9057ba

Please sign in to comment.