Skip to content
Snippets Groups Projects
Verified Commit e65ac7d1 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

use `bytes decode` in app.nu

parent f7f7d671
No related tags found
No related merge requests found
use swarm.nu "bytes decode"
use std log
const HTTP = {
......@@ -170,7 +171,7 @@ export def put-record [
export def get-record [
key: string,
--node: string = $DEFAULT_IP
]: nothing -> any {
]: nothing -> string {
log debug $"getting record with key ($key) from ($node)"
$"get-record/($key)" | run-command $node
$"get-record/($key)" | run-command $node | bytes decode
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment