Skip to content

Commit f4d6fe9

Browse files
committed
adjust comments
1 parent 6e397ee commit f4d6fe9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

acceptor.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,12 @@ func (a *Acceptor) SetConnectionValidator(validator ConnectionValidator) {
426426
a.connectionValidator = validator
427427
}
428428

429-
// SetTLSConfig allows the creator of the Acceptor to specify a fully customizable tls.Config.
430-
431-
// When the caller explicitly provides a tls.Config with this function,
429+
// SetTLSConfig allows the creator of the Acceptor to specify a fully customizable tls.Config of their choice,
430+
// which will be used in the Start() method.
431+
//
432+
// Note: when the caller explicitly provides a tls.Config with this function,
432433
// it takes precendent over TLS settings specified in the acceptor's settings.GlobalSettings(),
433-
// meaning that the setting object is not inspected or used for the creation of the tls.Config.
434+
// meaning that the `settings.GlobalSettings()` object is not inspected or used for the creation of the tls.Config.
434435
func (a *Acceptor) SetTLSConfig(tlsConfig *tls.Config) {
435436
a.tlsConfig = tlsConfig
436437
}

0 commit comments

Comments
 (0)