mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
chore: move dormancy to enterprise package (#9468)
This commit is contained in:
@ -378,6 +378,8 @@ type Options struct {
|
||||
|
||||
// optional pre-shared key for authentication of external provisioner daemons
|
||||
ProvisionerDaemonPSK string
|
||||
|
||||
CheckInactiveUsersCancelFunc func()
|
||||
}
|
||||
|
||||
type API struct {
|
||||
@ -414,6 +416,10 @@ func (api *API) Close() error {
|
||||
if api.derpMesh != nil {
|
||||
_ = api.derpMesh.Close()
|
||||
}
|
||||
|
||||
if api.Options.CheckInactiveUsersCancelFunc != nil {
|
||||
api.Options.CheckInactiveUsersCancelFunc()
|
||||
}
|
||||
return api.AGPL.Close()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user