Skip to content

Commit

Permalink
rename static AddOrReplace to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel committed Oct 31, 2024
1 parent a1ddad9 commit 6c5a422
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracer/src/Datadog.Trace/Baggage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ public void AddOrReplace(string key, string value)

lock (items)
{
AddOrReplace(items, key, value);
AddOrReplaceInternal(items, key, value);
}
}

private static void AddOrReplace(List<KeyValuePair<string, string>> items, string key, string value)
private static void AddOrReplaceInternal(List<KeyValuePair<string, string>> items, string key, string value)
{
for (int i = 0; i < items.Count; i++)
{
Expand Down Expand Up @@ -410,7 +410,7 @@ public void MergeInto(Baggage destination)
{
foreach (var sourceItem in sourceItems)
{
AddOrReplace(destinationItems, sourceItem.Key, sourceItem.Value);
AddOrReplaceInternal(destinationItems, sourceItem.Key, sourceItem.Value);
}
}
}
Expand Down

0 comments on commit 6c5a422

Please sign in to comment.