can exit while reading from keyboard
This commit is contained in:
@@ -10,9 +10,10 @@ import (
|
||||
)
|
||||
|
||||
func Main(ctx context.Context) error {
|
||||
reader := input.New()
|
||||
writer := output.New()
|
||||
reader := input.New(ctx)
|
||||
writer := output.New(ctx)
|
||||
defer writer.Close()
|
||||
defer reader.Close()
|
||||
|
||||
interval := time.Millisecond * 50
|
||||
if intervalS, ok := os.LookupEnv("MAIN_INTERVAL_DURATION"); !ok {
|
||||
|
||||
Reference in New Issue
Block a user