nilable :message/to spec

This commit is contained in:
Roman Volosovskyi 2016-09-20 14:29:15 +03:00
parent 11d68436b5
commit 50e37bf327
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/ttl (s/and int? pos?))
(s/def :message/from string?) (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/message-id string?)
(s/def :message/requires-ack? boolean?) (s/def :message/requires-ack? boolean?)
(s/def :keypair/private string?) (s/def :keypair/private string?)

View File

@ -68,7 +68,7 @@
update to set/union #{[web3 message-id to]}))))))) update to set/union #{[web3 message-id to]})))))))
(s/def :delivery/pending-message (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 :message/requires-ack? :payload/ack? ::id :message/topics
::attempts ::was-sent?])) ::attempts ::was-sent?]))