Skip to content

Commit

Permalink
shared-state-async: expose publish all
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed May 10, 2024
1 parent a16949f commit 5300577
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sinc_args=""

case "$1" in
list)
echo '{ "sync": { "data_type": "str", "peers_ip": "str" }, "get": { "data_type": "str" }, "publish": { "data_type": "str" } }'
echo '{ "sync": { "data_type": "str", "peers_ip": "str" }, "get": { "data_type": "str" }, "publish": { "data_type": "str" }, "publish_all": { } }'
;;
call)
# source jshn shell library
Expand All @@ -37,6 +37,10 @@ case "$1" in
/usr/share/shared-state/publishers/shared-state-publish_$data_type > /dev/null 2>&1
echo {\"data\": {} , \"error\": $? }
;;
publish_all)
shared-state-async-publish-all > /dev/null 2>&1
echo {\"data\": {} , \"error\": $? }
;;
*)
echo '{\"data\" {} ,\"error\" = "Method not found"}'
;;
Expand Down

0 comments on commit 5300577

Please sign in to comment.