Skip to content

Commit b92beb5

Browse files
refactor: use slice instead of Vec reference for exit_causes
1 parent d825047 commit b92beb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-compute/src/api/worker_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl WorkerApiClient {
102102
&self,
103103
authorization: &str,
104104
chain_task_id: &str,
105-
exit_causes: &Vec<ReplicateStatusCause>,
105+
exit_causes: &[ReplicateStatusCause],
106106
) -> Result<(), ReplicateStatusCause> {
107107
let url = format!("{}/compute/pre/{chain_task_id}/exit", self.base_url);
108108
match self

0 commit comments

Comments
 (0)