From 0c3090902206e82dde33b88ba78bbd97dc323390 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 20 Nov 2025 10:45:43 +0800 Subject: [PATCH] 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. --- trace/types/driver.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trace/types/driver.go b/trace/types/driver.go index 82a6c3d8..3eff3d97 100644 --- a/trace/types/driver.go +++ b/trace/types/driver.go @@ -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