From 1290b3484ea62e5fe5bcebe6aee5a60eebda144b Mon Sep 17 00:00:00 2001 From: Andy Gayton Date: Mon, 3 Jun 2024 09:19:13 -0400 Subject: [PATCH] xs append now expects a record for --meta --- xs.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xs.nu b/xs.nu index 103ef4f..a30d0af 100755 --- a/xs.nu +++ b/xs.nu @@ -48,11 +48,11 @@ export def stream-get [ export def append [ store: string topic: string - --meta: string + --meta: record ] { curl -s -T - -X POST ...( $meta | and-then { - ["-H" $"xs-meta: ($meta)"] + ["-H" $"xs-meta: ($meta | to json -r)"] } | default [] ) --unix-socket $"($store)/sock" $"localhost(if ($topic | str starts-with '/') { $topic } else { $"/($topic)" })" }