Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
macielti committed Dec 30, 2021
1 parent d2d9ac2 commit 5d7ee67
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,12 @@ of [keepachangelog.com](http://keepachangelog.com/).

## [Unreleased]

## [4.9.4] - 2021-12-28

### Fixed

- Fix Interceptor importing problem. Not finding the class.

## [4.9.3] - 2021-12-28

### Added
Expand Down Expand Up @@ -113,6 +119,8 @@ of [keepachangelog.com](http://keepachangelog.com/).

[Unreleased]: https://github.com/macielti/common-clj/compare/0.1.1...HEAD

[4.9.4]: https://github.com/macielti/common-clj/compare/4.9.4...4.9.3

[4.9.3]: https://github.com/macielti/common-clj/compare/4.9.3...3.9.3

[3.9.3]: https://github.com/macielti/common-clj/compare/3.9.3...3.8.3
Expand Down
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject net.clojars.macielti/common-clj "4.9.3"
(defproject net.clojars.macielti/common-clj "4.9.4"
:description "Just common Clojure code that I use across projects"
:url "https://github.com/macielti/common-clj"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
7 changes: 2 additions & 5 deletions src/common_clj/component/telegram/core.clj
@@ -1,5 +1,4 @@
(ns common-clj.component.telegram.core
(:use [clojure pprint])
(:require [schema.core :as s]
[io.pedestal.interceptor :as interceptor]
[com.stuartsierra.component :as component]
Expand All @@ -9,9 +8,7 @@
[medley.core :as medley]
[overtone.at-at :as at-at]
[common-clj.component.telegram.adapters.update :as telegram.adapters.message]
[common-clj.component.telegram.models.consumer :as component.telegram.models.consumer]
[taoensso.timbre :as timbre])
(:import (io.pedestal.interceptor Interceptor)))
[common-clj.component.telegram.models.consumer :as component.telegram.models.consumer]))

(s/defn send-message!
[message :- s/Str
Expand All @@ -23,7 +20,7 @@
telegram]
(telegram-bot/get-updates telegram {:offset (+ offset 1)}))

(s/defn interceptors-by-consumer :- [Interceptor]
(s/defn interceptors-by-consumer
[consumer
{:keys [interceptors]}]
(let [interceptor-groups (group-by :name interceptors)]
Expand Down
5 changes: 2 additions & 3 deletions src/common_clj/component/telegram/models/consumer.clj
@@ -1,14 +1,13 @@
(ns common-clj.component.telegram.models.consumer
(:require [schema.core :as s])
(:import (clojure.lang IFn)
(io.pedestal.interceptor Interceptor)))
(:import (clojure.lang IFn)))

(s/defschema Consumer
{(s/optional-key :consumer/interceptors) [s/Keyword]
:consumer/handler IFn
(s/optional-key :consumer/error-handler) IFn})

(s/defschema Consumers
{(s/optional-key :interceptors) [Interceptor]
{(s/optional-key :interceptors) [s/Any]
:message {s/Keyword Consumer}
:callback-query {s/Keyword Consumer}})

0 comments on commit 5d7ee67

Please sign in to comment.