Skip to content

Commit

Permalink
Merge pull request #1440 from mgjm-fork/doc-client-reconnect
Browse files Browse the repository at this point in the history
Mention that the go client reuses a running server
  • Loading branch information
openshift-merge-robot committed Jun 27, 2023
2 parents c8ed0f4 + f3d3988 commit 02a5fd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 02a5fd0

Please sign in to comment.