nilable :message/to spec
This commit is contained in:
parent
11d68436b5
commit
50e37bf327
|
@ -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?)
|
||||||
|
|
|
@ -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?]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue