chore: move dormancy to enterprise package (#9468)

This commit is contained in:
Marcin Tojek
2023-08-31 17:59:53 +02:00
committed by GitHub
parent 7c4ce62a58
commit 11d4b6f758
5 changed files with 10 additions and 5 deletions

View File

@ -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()
}