ahdinosaur
  • Joined on 2022-05-30
ahdinosaur commented on pull request PeachCloud/peach-workspace#131 2022-07-12 11:19:58 +00:00
Add wait-for-sbot to peach-config

for comparison, if we use ditch the Err cases and then use if let instead of match:

    while num_attempts < MAX_NUM_ATTEMPTS {
        let sbot_res = init_sbot().await;

  
ahdinosaur commented on pull request PeachCloud/peach-workspace#131 2022-07-12 11:13:31 +00:00
Add wait-for-sbot to peach-config

hi @notplants, here from the "P4P Rust Learning" chat. 😺

on how to refactor peach-config/src/wait_for_sbot.rs, here's what i came up with so far:

use std::{thread, time};

us