func StartCheckForUpcomingLicenseExpirations() {
	if atomic.AddUint32(&licenseExpirationCheckers, 1) != 1 {
		panic("StartCheckForUpcomingLicenseExpirations called more than once")
	}

	dotcom := conf.Get().Dotcom
	if dotcom == nil {
		return
	}
	client := slack.New(dotcom.SlackLicenseExpirationWebhook)

	t := time.NewTicker(1 * time.Hour)
	for range t.C {
		checkLicensesIfNeeded(client)
	}
}
// StartCheckForUpcomingLicenseExpirations checks for upcoming license expirations once per day.
StartCheckForUpcomingLicenseExpirations checks for upcoming license expirations once per day.
// StartCheckForUpcomingLicenseExpirations checks for upcoming license expirations once per day .
func StartCheckForUpcomingLicenseExpirations() {
	if atomic.AddUint32(&licenseExpirationCheckers, 1) != 1 {
		panic("StartCheckForUpcomingLicenseExpirations called more than once")
	}
	dotcom := conf.Get().Dotcom
	if dotcom == nil {
		return
	}
	client := slack.New(dotcom.SlackLicenseExpirationWebhook)
	t := time.NewTicker(1 * time.Hour)
	for range t.C {
		checkLicensesIfNeeded(client)
	}
}
func StartCheckForUpcomingLicenseExpirations ( ) { if atomic . AddUint32 ( & licenseExpirationCheckers , 1 ) != 1 { panic ( " " ) } dotcom := conf . Get ( ) . Dotcom if dotcom == nil { return } client := slack . New ( dotcom . SlackLicenseExpirationWebhook ) t := time . NewTicker ( 1 * time . Hour ) for range t . C { checkLicensesIfNeeded ( client ) } }
StartCheckForUpcomingLicenseExpirations checks for upcoming license expirations once per day.
StartCheckForUpcomingLicenseExpirations checks for upcoming license expirations once per day .