Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::{thread, time};
- pub(crate) mod redis;
- pub fn send_db(data: &[String]) {
- let val = data.join(" ").replace("Space", " ");
- loop {
- if redis::send(&val).is_ok() {
- break;
- }
- thread::sleep(time::Duration::from_millis(10))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement