  (def event2 {:name "foo/baz"
               :key 5555
               :data [1 2 3 4]})
- (defn my-func
-   {:reg {:kind :fact
-          :name "foo/bar"}}
-   [ev publish]
+ (defn my-func [ev publish]
    (publish event2))
  (def event-that-was-sent
    (merge my-event event2))

 (assign-service "foobar" my-other-service) => nil
 (provided
  (lc/subscribe :some-chan "foobar" irrelevant {:auto-ack false}) => irrelevant))

[[:chapter {:title "publish: Publish an Event from the Outside" :tag "publish"}]]
"`publish` is a service that allows its users to publish events from outside the context of a service.

   (di/startup $)
   (di/do-with! $ [serve]
     (serve my-service {:partial :event}) => nil
     (persistent! calls)
     => [[:declare-service "rabbit-microservices.core-test/my-service" {:partial :event}]
         [:assign-service "rabbit-microservices.core-test/my-service" my-service]])))


[[:chapter {:title "declare-service: Declare an AMQP Queue" :tag "declare-service"}]]
