Skip to content

Commit

Permalink
Update mutiny CLI for latest MutinyClient API
Browse files Browse the repository at this point in the history
  • Loading branch information
caolan committed Sep 9, 2024
1 parent b448b95 commit 15cab83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mutiny/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { connect, defaultSocketPath } from "../lib/client.ts";
import { MutinyClient, defaultSocketPath } from "../lib/client.ts";

if (import.meta.main) {
const socket_path = Deno.args[0] || defaultSocketPath();
const client = await connect({socket_path});
const client = new MutinyClient({socket_path});
const [peer_id, peers] = await Promise.all([
client.peers(),
client.localPeerId(),
Expand Down

0 comments on commit 15cab83

Please sign in to comment.