Skip to content

Commit

Permalink
fix: use nanoseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmaggiowski committed Jan 30, 2025
1 parent 955c451 commit 538c76c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (e evaluator) EvaluateRequestPolicy(ctx context.Context, rondInput core.Inp
Path: rondInput.Request.Path,
UserAgent: rondInput.Request.Headers.Get(userAgentHeaderKey),
},
Timestamp: time.Now().Unix(),
Timestamp: time.Now().UnixNano(),
}); err != nil {
logger.WithField("error", map[string]any{
"aggregationId": options.Audit.AggregationID,
Expand Down Expand Up @@ -162,7 +162,7 @@ func (e evaluator) EvaluateRequestPolicy(ctx context.Context, rondInput core.Inp
Path: rondInput.Request.Path,
UserAgent: rondInput.Request.Headers.Get(userAgentHeaderKey),
},
Timestamp: time.Now().Unix(),
Timestamp: time.Now().UnixNano(),
}); err != nil {
logger.WithField("error", map[string]any{
"aggregationId": options.Audit.AggregationID,
Expand Down Expand Up @@ -216,7 +216,7 @@ func (e evaluator) EvaluateResponsePolicy(ctx context.Context, rondInput core.In
Path: rondInput.Request.Path,
UserAgent: rondInput.Request.Headers.Get(userAgentHeaderKey),
},
Timestamp: time.Now().Unix(),
Timestamp: time.Now().UnixNano(),
}); err != nil {
logger.WithField("error", map[string]any{
"aggregationId": options.Audit.AggregationID,
Expand All @@ -241,7 +241,7 @@ func (e evaluator) EvaluateResponsePolicy(ctx context.Context, rondInput core.In
Path: rondInput.Request.Path,
UserAgent: rondInput.Request.Headers.Get(userAgentHeaderKey),
},
Timestamp: time.Now().Unix(),
Timestamp: time.Now().UnixNano(),
}); err != nil {
logger.WithField("error", map[string]any{
"aggregationId": options.Audit.AggregationID,
Expand Down

0 comments on commit 538c76c

Please sign in to comment.