buffer blocks while no changes underlying, test buffer
This commit is contained in:
@@ -12,5 +12,9 @@ func New() Input {
|
||||
if p, ok := os.LookupEnv("INPUT_RANDOM_WEIGHT_FILE"); ok {
|
||||
foo = randomCharFromWeightFile(p)
|
||||
}
|
||||
return NewRandom(foo)
|
||||
var result Input = NewRandom(foo)
|
||||
if os.Getenv("INPUT_BUFFERED") == "true" {
|
||||
result = NewBuffered(result)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user