Skip to content

Commit

Permalink
Clean up some dead-ish code, moved the debug code to the -debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
benjojo committed Nov 15, 2019
1 parent 78951fb commit a747a9c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ func main() {

// now to send what i think activates this

bytesRead := 0
frameRequest := make(chan bool)
frameOutput := make(chan ReadSkipper, 1)
go func() {
Expand All @@ -226,19 +225,16 @@ func main() {
// continue
}

bytesRead += n

f, _ := os.Create("./debug")
f.Write(dataBuf[:n])
// os.Stderr.WriteString(fmt.Sprintf("N=%d\n", n))

if *debugLogging {
f, _ := os.Create("./debug")
f.Write(dataBuf[:n])
os.Stderr.WriteString(fmt.Sprintf("N=%d\n", n))
}
rSk := ReadSkipper{
Data: dataBuf[:n],
Bread: 4,
}
// log.Printf("Best Guess %#v\n", GuessTheRes(n))
frameOutput <- rSk

}
}()

Expand Down

0 comments on commit a747a9c

Please sign in to comment.