fix(eventstore): revert precise decimal (#8527) (#8679)

(cherry picked from commit aeb379e7de)
This commit is contained in:
Tim Möhlmann
2024-09-24 19:43:29 +03:00
committed by Livio Spring
parent f0ce5d537c
commit 6bd706be98
47 changed files with 215 additions and 319 deletions

View File

@@ -2,8 +2,6 @@ package eventstore
import (
"context"
"github.com/shopspring/decimal"
)
func NewEventstore(querier Querier, pusher Pusher) *EventStore {
@@ -32,12 +30,12 @@ type healthier interface {
}
type GlobalPosition struct {
Position decimal.Decimal
Position float64
InPositionOrder uint32
}
func (gp GlobalPosition) IsLess(other GlobalPosition) bool {
return gp.Position.LessThan(other.Position) || (gp.Position.Equal(other.Position) && gp.InPositionOrder < other.InPositionOrder)
return gp.Position < other.Position || (gp.Position == other.Position && gp.InPositionOrder < other.InPositionOrder)
}
type Reducer interface {