changed extension autoloader default timeout to 10 minutes

This commit is contained in:
a. fox 2023-03-26 03:20:31 -04:00
parent cbba09c0e9
commit 648b876063
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ automod-banned-words = poopy, stinky, doodoohead
autoban-strike-count = 2
# autoloader service will check for new extensions based on a timeout (in minutes) that is customizable below
# defaults to 5 minutes
# defaults to 10 minutes
autoloader-timeout = 20
# config refresher can be configured to poll the config file every X minutes

View File

@ -12,10 +12,10 @@
;; defines a service that checks for new extensions placed in the user's extension directory
;; if it sees an extension that isn't loaded it loads it.
;;
;; by default checks every 5 minutes
;; by default checks every 10 minutes
;; can be custmoized by setting autoloader-timeout in your config (see config.example)
(define-service ("extension-autoloader" :start-immediately t)
(after-every ((env :autoloader-timeout 5) :minutes)
(define-service ("extension-autoloader")
(after-every ((env :autoloader-timeout 10) :minutes)
(loop :for file :in (uiop:directory-files (getf opts :extension-directory "./extensions/") "*.lisp")
:unless (member file *loaded-extensions* :test #'equal)
:do (load file)