Skip to content

Commit

Permalink
rename get_peer_id_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
justprosh committed Aug 30, 2023
1 parent 223c3a8 commit 7b7bfd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workers.aqua
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ service Worker("worker"):

-- Returns worker peer id associated with `init_peer_id`.
-- Throws an error if worker doesn't exist.
-- WILL BE DEPRECATED SOON, use `get_worker_id` instead.
get_peer_id() -> PeerId

-- Returns worker peer id associated with `init_peer_id`.
-- Returns nil if worker doesn't exist.
get_peer_id_opt() -> ?PeerId
get_worker_id() -> ?PeerId

-- Removes worker with all deployed spells and services.
-- Throws an error if worker doesn't exist.
Expand Down

0 comments on commit 7b7bfd2

Please sign in to comment.