Skip to content

Commit

Permalink
xs append now expects a record for --meta
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jun 3, 2024
1 parent c206f90 commit 1290b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xs.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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)" })"
}
Expand Down

0 comments on commit 1290b34

Please sign in to comment.