mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
78ed38a33a
commit
df9122b664
16 changed files with 175 additions and 197 deletions
|
|
@ -144,19 +144,14 @@ func LoadUploadToken() (err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
refreshCheckTicker = time.NewTicker(2 * time.Hour)
|
||||
subscriptionExpirationReminded bool
|
||||
)
|
||||
|
||||
func AutoRefreshCheck() {
|
||||
for {
|
||||
go refreshSubscriptionExpirationRemind()
|
||||
go refreshUser()
|
||||
go refreshAnnouncement()
|
||||
go refreshCheckDownloadInstallPkg()
|
||||
|
||||
<-refreshCheckTicker.C
|
||||
}
|
||||
func RefreshCheckJob() {
|
||||
go refreshSubscriptionExpirationRemind()
|
||||
go refreshUser()
|
||||
go refreshAnnouncement()
|
||||
go refreshCheckDownloadInstallPkg()
|
||||
}
|
||||
|
||||
func refreshSubscriptionExpirationRemind() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue