From f3d39881f3750040e21258a496ac9d3c98be5ba3 Mon Sep 17 00:00:00 2001 From: Martin Michaelis Date: Tue, 27 Jun 2023 06:48:58 +0000 Subject: [PATCH] Mention that the go client reuses a running server Signed-off-by: Martin Michaelis --- pkg/client/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/client/client.go b/pkg/client/client.go index 32708fac69..7cc42f015f 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -153,6 +153,11 @@ func FromLogrusLevel(level logrus.Level) LogLevel { } // New creates a new conmon server, starts it and connects a new client to it. +// +// If a server is already started with the same `ServerRunDir` specified +// the client connects to the existing server instead. +// Note: Other options from the `ConmonServerConfig` will be ignored +// and the settings of the existing server will remain unchanged. func New(config *ConmonServerConfig) (client *ConmonClient, retErr error) { cl, err := config.toClient() if err != nil {