diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-11-27 14:47:43 +0000 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-11-27 14:47:43 +0000 |
| commit | 45853f487830d5f74f2de81b5348ae6463096a57 (patch) | |
| tree | 1963fa6c2614ae58a0c6134afa8cd1928c6f1516 /internal/clients/baseclient.go | |
| parent | 48bbe327834f3fbb1066a0dc8587a73c0e2a2a36 (diff) | |
First Ctrl+C will print out stats, a second Ctrl+C within 3s will terminate dtail
Diffstat (limited to 'internal/clients/baseclient.go')
| -rw-r--r-- | internal/clients/baseclient.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/clients/baseclient.go b/internal/clients/baseclient.go index d8d4fde..69055a3 100644 --- a/internal/clients/baseclient.go +++ b/internal/clients/baseclient.go @@ -66,7 +66,7 @@ func (c *baseClient) makeConnections(maker maker) { c.stats = newTailStats(len(c.connections)) } -func (c *baseClient) Start(ctx context.Context, statsCh <-chan struct{}) (status int) { +func (c *baseClient) Start(ctx context.Context, statsCh <-chan string) (status int) { // Periodically check for unknown hosts, and ask the user whether to trust them or not. go c.hostKeyCallback.PromptAddHosts(ctx) // Print client stats every time something on statsCh is recieved. |
