nilable :message/to spec

Former-commit-id: 50e37bf327
This commit is contained in:
Roman Volosovskyi 2016-09-20 14:29:15 +03:00
parent d1dfce60d5
commit 0a3b8e137e
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
(s/def :message/ttl (s/and int? pos?))
(s/def :message/from string?)
(s/def :message/to string?)
(s/def :message/to (s/nilable string?))
(s/def :message/message-id string?)
(s/def :message/requires-ack? boolean?)
(s/def :keypair/private string?)

View File

@ -68,7 +68,7 @@
update to set/union #{[web3 message-id to]})))))))
(s/def :delivery/pending-message
(s/keys :req-un [:message/to :message/from :shh/payload
(s/keys :req-un [:message/from :message/to :shh/payload
:message/requires-ack? :payload/ack? ::id :message/topics
::attempts ::was-sent?]))