tools/c: use new api

This commit is contained in:
Adrien Béraud committed 2022-02-21 16:05:36 -05:00
1 parent 1134ff3215
commit 9efd66ade9
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ int main()
// Put data
const char* data_str = "yo, this is some data";
dht_value* val = dht_value_new(data_str, strlen(data_str));
dht_value* val = dht_value_new_from_string(data_str);
dht_runner_put(runner, &h, val, dht_done_callback, runner, false);
dht_value_unref(val);