diff options
| author | Paul Buetow <git@mx.buetow.org> | 2020-12-27 16:31:03 +0000 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2020-12-27 16:31:03 +0000 |
| commit | 94e37105c5a8c0ce22104add751e9938f239261e (patch) | |
| tree | 410b98e4fa8cb722305c1feb6f8e286021805501 /internal/server/handlers/serverhandler.go | |
| parent | eca9c65b7c9e33cba8cc1ea5afe016bfc59f8918 (diff) | |
only try to read a file once in cat and grep mode but 10 times in tail mode
Diffstat (limited to 'internal/server/handlers/serverhandler.go')
| -rw-r--r-- | internal/server/handlers/serverhandler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/handlers/serverhandler.go b/internal/server/handlers/serverhandler.go index 681598c..185e7c2 100644 --- a/internal/server/handlers/serverhandler.go +++ b/internal/server/handlers/serverhandler.go @@ -258,7 +258,7 @@ func (h *ServerHandler) handleUserCommand(ctx context.Context, argc int, args [] command := newReadCommand(h, omode.CatClient) go func() { h.incrementActiveReaders() - command.Start(ctx, argc, args) + command.Start(ctx, argc, args, 1) readerFinished() commandFinished() }() @@ -267,7 +267,7 @@ func (h *ServerHandler) handleUserCommand(ctx context.Context, argc int, args [] command := newReadCommand(h, omode.TailClient) go func() { h.incrementActiveReaders() - command.Start(ctx, argc, args) + command.Start(ctx, argc, args, 10) readerFinished() commandFinished() }() |
