Skip to content

Commit 4a692d9

Browse files
committed
remove old comments
1 parent c1905cb commit 4a692d9

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

dogfood/client/dogfood_client.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,6 @@ func printAndLog(logLine string) {
8989
}
9090
f.Close()
9191
}()
92-
93-
// write and read this file to help with testing disk disruptions
94-
95-
//writeSize := len(logLineBytes)
96-
//var err error
97-
//f, err := os.OpenFile("/mnt/data/logging", os.O_APPEND|os.O_WRONLY|os.O_CREATE|os.O_SYNC, 0600)
98-
//if err != nil {
99-
// panic(err)
100-
//}
101-
//
102-
//defer f.Close()
103-
//// the os.WriteFile will reset the file as to not fill up disk space
104-
//// the follow WriteString Operations will append 10 lines to the file so to increase read operations that follow
105-
//// the writes
106-
//err = os.WriteFile("/mnt/data/logging", logLineBytes, 0644)
107-
//if err != nil {
108-
// fmt.Errorf("could not write to logging file: %w", err)
109-
//}
110-
//for i := 0; i < 10; i++ {
111-
// if _, err = f.WriteString(logLine + "\n"); err != nil {
112-
// fmt.Errorf("could not write to logging file: %w", err)
113-
// } else {
114-
// writeSize += writeSize
115-
// }
116-
//
117-
//}
118-
//
119-
//test := make([]byte, writeSize)
120-
//_, err = f.Read(test)
121-
//if err != nil {
122-
// fmt.Errorf("could not read the logging file: %w", err)
123-
//}
12492
}
12593

12694
// regularly order food for different animals

0 commit comments

Comments
 (0)