Refactor TraceLog struct for improved readability

- Adjusted formatting of the TraceLog struct in driver.go to enhance code clarity and maintainability by aligning comments and struct fields.
This commit is contained in:
Max 2025-11-20 10:45:43 +08:00
parent 465e45828b
commit 0c30909022

View file

@ -4,11 +4,11 @@ import "context"
// TraceLog represents a log entry
type TraceLog struct {
Timestamp int64 // Log timestamp (milliseconds since epoch)
Level string // Log level (info, debug, error, warn)
Message string // Log message
Data []any // Additional data arguments
NodeID string // Node ID this log belongs to
Timestamp int64 // Log timestamp (milliseconds since epoch)
Level string // Log level (info, debug, error, warn)
Message string // Log message
Data []any // Additional data arguments
NodeID string // Node ID this log belongs to
}
// Driver defines the storage driver interface that providers must implement