Skip to content

Commit

Permalink
change the default value for last_stored_offset (#307)
Browse files Browse the repository at this point in the history
fixes:#306

Signed-off-by: Gabriele Santomaggio <[email protected]>
  • Loading branch information
Gsantomaggio authored May 29, 2024
1 parent 77deb9d commit e21251f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ dist/

perfTest/perfTest
go.dev/
local_ex/
1 change: 1 addition & 0 deletions pkg/stream/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func (coordinator *Coordinator) NewConsumer(messagesHandler MessagesHandler,
status: open,
mutex: &sync.Mutex{},
MessagesHandler: messagesHandler,
lastStoredOffset: -1, // because 0 is a valid value for the offset
isPromotedAsActive: true,
}

Expand Down

0 comments on commit e21251f

Please sign in to comment.