integrant

2018-10-16T16:25:55.000100Z

@dadair where do you create your channels? I'm creating mine in the init-key function and closing them in the halt-key method.

2018-10-16T16:26:22.000100Z

Pretty sure I do the exact same thing, trying to find them atm

2018-10-16T16:26:55.000100Z

do you return them in to the state?

2018-10-16T16:27:29.000100Z

Yeah, so I do a very naive setup (could be smarter around not closing during resets)

(defmethod ig/init-key ::raw-input-queue [_ {:keys [logger buffer-size]}]
  (logger/log logger :report ::constructing-raw-input-queue {:size buffer-size})
  (async/chan (async/dropping-buffer buffer-size)))

(defmethod ig/halt-key! ::raw-input-queue [_ chan]
  (when chan (async/close! chan)))

2018-10-16T16:30:26.000100Z

Looks very similar, maybe need to do some more debugging. Thanks

2018-10-16T16:31:06.000100Z

My guess is your functions have a handle on an old channel somehow

2018-10-16T16:32:05.000100Z

Would you mind reiterating the problem? The logs don't show it for me.

2018-10-16T16:37:47.000100Z

@weavejester it was posted in the core async channel

2018-10-16T16:38:01.000100Z

2018-10-16T17:15:28.000100Z

I realized what I did wrong... I did not do the way @dadair did and creating the channels in side the init-key. I created them inside the state map. After moving them everything works perfect!