Skip to content

Commit

Permalink
Naming fixes
Browse files Browse the repository at this point in the history
Decreasing diff on #1714 to make things a bit easier to read.
  • Loading branch information
Nick Craver committed May 22, 2021
1 parent 91bfa56 commit c625c1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/StackExchange.Redis/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ internal void SetBacklogState(int position, PhysicalConnection physical)

// All for profiling purposes
private ProfiledCommand performance;
internal DateTime createdDateTime;
internal long createdTimestamp;
internal DateTime CreatedDateTime;
internal long CreatedTimestamp;

protected Message(int db, CommandFlags flags, RedisCommand command)
{
Expand Down Expand Up @@ -128,8 +128,8 @@ protected Message(int db, CommandFlags flags, RedisCommand command)
Flags = flags & UserSelectableFlags;
if (masterOnly) SetMasterOnly();

createdDateTime = DateTime.UtcNow;
createdTimestamp = System.Diagnostics.Stopwatch.GetTimestamp();
CreatedDateTime = DateTime.UtcNow;
CreatedTimestamp = System.Diagnostics.Stopwatch.GetTimestamp();
Status = CommandStatus.WaitingToBeSent;
}

Expand Down Expand Up @@ -165,8 +165,8 @@ internal void PrepareToResend(ServerEndPoint resendTo, bool isMoved)
oldPerformance.SetCompleted();
performance = null;

createdDateTime = DateTime.UtcNow;
createdTimestamp = System.Diagnostics.Stopwatch.GetTimestamp();
CreatedDateTime = DateTime.UtcNow;
CreatedTimestamp = System.Diagnostics.Stopwatch.GetTimestamp();
performance = ProfiledCommand.NewAttachedToSameContext(oldPerformance, resendTo, isMoved);
performance.SetMessage(this);
Status = CommandStatus.WaitingToBeSent;
Expand Down
4 changes: 2 additions & 2 deletions src/StackExchange.Redis/Profiling/ProfiledCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public void SetMessage(Message msg)
if (Message != null) throw new InvalidOperationException($"{nameof(SetMessage)} called more than once");

Message = msg;
MessageCreatedDateTime = msg.createdDateTime;
MessageCreatedTimeStamp = msg.createdTimestamp;
MessageCreatedDateTime = msg.CreatedDateTime;
MessageCreatedTimeStamp = msg.CreatedTimestamp;
}

public void SetEnqueued() => SetTimestamp(ref EnqueuedTimeStamp);
Expand Down

0 comments on commit c625c1d

Please sign in to comment.