feat: update
This commit is contained in:
@@ -92,7 +92,13 @@ func (c *DBChannel) Get(ctx context.Context) error {
|
||||
}
|
||||
|
||||
func (c *DBChannel) Update(ctx context.Context, offsetID int) error {
|
||||
c.Offset = offsetID
|
||||
if c.Offset == 0 {
|
||||
c.Offset = offsetID
|
||||
}
|
||||
|
||||
if c.Offset > offsetID {
|
||||
c.Offset = offsetID
|
||||
}
|
||||
|
||||
if c.MinID < offsetID {
|
||||
c.MinID = offsetID
|
||||
|
||||
Reference in New Issue
Block a user