mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
20 lines
360 B
Go
20 lines
360 B
Go
|
package spooler
|
||
|
|
||
|
import (
|
||
|
"database/sql"
|
||
|
es_locker "github.com/caos/zitadel/internal/eventstore/locker"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
lockTable = "authz.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)
|
||
|
}
|