chiark / gitweb /
wdt: wdt-simple: get client into gots
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Jan 2021 22:55:32 +0000 (22:55 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 00:39:31 +0000 (00:39 +0000)
Not used yet

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-simple.rs

index a73df69595bc973568c943c3e74f0d33c7b02e2f..01aed1359c2dac466b5a0e774427219fc1fee8d6 100644 (file)
@@ -222,6 +222,7 @@ impl Ctx {
       now: Pos,
       log: Vec<String>,
       held: Option<String>,
+      client: String,
     }
 
     let gots = sides.iter().map(|side|{
@@ -241,11 +242,16 @@ impl Ctx {
         .collect::<Result<Vec<String>,_>>()?;
 
       let held = w.piece_held(&pc)?;
+      let client = w.client()?;
 
-      Ok::<_,AE>(Got { now, log, held })
+      Ok::<_,AE>(Got { now, log, held, client })
     }).collect::<Result<Vec<_>,AE>>()?;
 
     dbg!(gots);
+/*
+    let yesno = izip!(&sides, &gots).map(|side, got|{
+      let yn = 
+    }).collect::<Result<Vec<_>,AE>>.context("compare")?;*/
   }
 }