File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,14 @@ See `config:config-from`."
100
100
101
101
(defun %register-eventstream (system ev-config actor-context)
102
102
(with-slots (eventstream) system
103
- (setf eventstream (ev :make-eventstream actor-context ev-config))))
103
+ (setf eventstream (apply #' ev:make-eventstream
104
+ actor-context
105
+ ev-config))))
104
106
105
107
(defun %register-timeout-timer (system timer-config)
106
108
(with-slots (timeout-timer) system
107
- (setf timeout-timer (wt :make-wheel-timer timer-config))))
109
+ (setf timeout-timer (apply #' wt:make-wheel-timer
110
+ timer-config))))
108
111
109
112
(defun %register-dispatchers (system dispatcher-config actor-context)
110
113
" Creates a plist of dispatchers for the `:dispatchers` configuration section."
Original file line number Diff line number Diff line change 21
21
(tw :wheel-resolution wheel)
22
22
(length (tw ::slots wheel))))))
23
23
24
- (defun make-wheel-timer (config)
24
+ (defun make-wheel-timer (&rest config)
25
25
" Creates a new `wheel-timer`.
26
26
27
27
`config` is a parameter for a list of key parameters including:
Original file line number Diff line number Diff line change 13
13
14
14
(test make-wheel-timer
15
15
" Tests making a wheel timer with config"
16
- (let ((cut (make-wheel-timer ' ( :resolution 100 :max-size 100 ) )))
16
+ (let ((cut (make-wheel-timer :resolution 100 :max-size 100 )))
17
17
(unwind-protect
18
18
(progn
19
19
(is (not (null cut))))
20
20
(shutdown-wheel-timer cut))))
21
21
22
22
(test schedule
23
23
" Tests executing a scheduled timer function."
24
- (let ((cut (make-wheel-timer ' ( :resolution 100 :max-size 100 ) ))
24
+ (let ((cut (make-wheel-timer :resolution 100 :max-size 100 ))
25
25
(callback))
26
26
(unwind-protect
27
27
(progn
You can’t perform that action at this time.
0 commit comments