Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Jan 22, 2025
1 parent 1293fd4 commit 80f5521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion log/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Record struct {
back []KeyValue
}

// Event returns the event name.
// EventName returns the event name.
// A log record with non-empty event name is interpreted as an event record.
func (r *Record) EventName() string {
return r.eventName
Expand Down
4 changes: 2 additions & 2 deletions sdk/log/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func putIndex(index map[string]int) {
// for testing purposes.
type Record struct {
// Do not embed the log.Record. Attributes need to be overwrite-able and
// deep-copying needs
// deep-copying needs to be possible.

eventName string
timestamp time.Time
Expand Down Expand Up @@ -106,7 +106,7 @@ func (r *Record) setDropped(n int) {
r.dropped = n
}

// Event returns the event name.
// EventName returns the event name.
// A log record with non-empty event name is interpreted as an event record.
func (r *Record) EventName() string {
return r.eventName
Expand Down

0 comments on commit 80f5521

Please sign in to comment.