mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
d8e42744b4
* fix: move eventstore pkgs * fix: move eventstore pkgs * fix: remove v2 view * fix: remove v2 view
20 lines
368 B
Go
20 lines
368 B
Go
package spooler
|
|
|
|
import (
|
|
"database/sql"
|
|
es_locker "github.com/caos/zitadel/internal/eventstore/v1/locker"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
lockTable = "management.locks"
|
|
)
|
|
|
|
type locker struct {
|
|
dbClient *sql.DB
|
|
}
|
|
|
|
func (l *locker) Renew(lockerID, viewModel string, waitTime time.Duration) error {
|
|
return es_locker.Renew(l.dbClient, lockTable, lockerID, viewModel, waitTime)
|
|
}
|