ark-member/internal/lib/snackflow/error.go

19 lines
294 B
Go
Raw Normal View History

2024-07-21 15:57:56 +00:00
package snowflake
import (
"fmt"
"time"
)
type NewNodeError struct {
machineNodeID int64
startTime time.Time
Err error
}
func (e *NewNodeError) Error() string {
return fmt.Sprintf("new node fail machineNodeID: %d, startTime: %s, err: %v",
e.machineNodeID, e.startTime, e.Err)
}