Skip to content

Commit

Permalink
trim eventbus queue urls
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinzadehashraf committed Feb 13, 2024
1 parent 84a7bee commit 50bcb73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.0.4</Version>
<Version>1.0.5</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static string GetUrl(Type type)
if (url.IsEmpty())
url = $"FOR_DEVELOPMENT_ONLY_DataReplication_{type.FullName}";

return url;
return url.Trim();
}
}
}
2 changes: 1 addition & 1 deletion Olive.EventBus/EventBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static class EventBus
/// <summary>
/// Returns a queue for a specified queue url.
/// </summary>
public static IEventBusQueue Queue(string queueUrl) => Provider.Provide(queueUrl);
public static IEventBusQueue Queue(string queueUrl) => Provider.Provide(queueUrl.Trim());
public static string QueueUrl(Type messageType)
{
var url = Config.Get($"EventBus:Queues:{messageType.FullName.Replace(".", "_")}:Url");
Expand Down
2 changes: 1 addition & 1 deletion Olive.EventBus/Olive.EventBus.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>2.1.141</Version>
<Version>2.1.143</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 50bcb73

Please sign in to comment.