app-cloudep-member-server/internal/lib/snackflow/error.go

19 lines
294 B
Go
Raw Normal View History

2024-08-21 08:12:34 +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)
}