Revert "fix(eventstore): use decimal for position (#9881)"

This reverts commit e14639c0ad.
This commit is contained in:
adlerhurst
2025-05-19 17:14:47 +02:00
parent 3883ffd1ce
commit 90f7310848
49 changed files with 236 additions and 366 deletions

View File

@@ -6,7 +6,6 @@ import (
"strconv"
"time"
"github.com/shopspring/decimal"
"github.com/zitadel/logging"
"github.com/zitadel/zitadel/internal/api/authz"
@@ -43,7 +42,7 @@ type event struct {
command *command
createdAt time.Time
sequence uint64
position decimal.Decimal
position float64
}
// TODO: remove on v3
@@ -153,8 +152,8 @@ func (e *event) Sequence() uint64 {
return e.sequence
}
// Position implements [eventstore.Event]
func (e *event) Position() decimal.Decimal {
// Sequence implements [eventstore.Event]
func (e *event) Position() float64 {
return e.position
}