Skip to content

Commit ec37145

Browse files
committed
Satisfy linter reqs
1 parent fb2a734 commit ec37145

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+401
-385
lines changed

acceptor.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/quickfixgo/quickfix/config"
1616
)
1717

18-
//Acceptor accepts connections from FIX clients and manages the associated sessions.
18+
// Acceptor accepts connections from FIX clients and manages the associated sessions.
1919
type Acceptor struct {
2020
app Application
2121
settings *Settings
@@ -43,7 +43,7 @@ type ConnectionValidator interface {
4343
Validate(netConn net.Conn, session SessionID) error
4444
}
4545

46-
//Start accepting connections.
46+
// Start accepting connections.
4747
func (a *Acceptor) Start() (err error) {
4848
socketAcceptHost := ""
4949
if a.settings.GlobalSettings().HasSetting(config.SocketAcceptHost) {
@@ -112,7 +112,7 @@ func (a *Acceptor) Start() (err error) {
112112
return
113113
}
114114

115-
//Stop logs out existing sessions, close their connections, and stop accepting new connections.
115+
// Stop logs out existing sessions, close their connections, and stop accepting new connections.
116116
func (a *Acceptor) Stop() {
117117
defer func() {
118118
_ = recover() // suppress sending on closed channel error
@@ -141,7 +141,7 @@ func (a *Acceptor) RemoteAddr(sessionID SessionID) (net.Addr, bool) {
141141
return val, ok
142142
}
143143

144-
//NewAcceptor creates and initializes a new Acceptor.
144+
// NewAcceptor creates and initializes a new Acceptor.
145145
func NewAcceptor(app Application, storeFactory MessageStoreFactory, settings *Settings, logFactory LogFactory) (a *Acceptor, err error) {
146146
a = &Acceptor{
147147
app: app,
@@ -394,7 +394,8 @@ LOOP:
394394
// Use it when you need a custom authentication logic that includes lower level interactions,
395395
// like mTLS auth or IP whitelistening.
396396
// To remove a previously set validator call it with a nil value:
397-
// a.SetConnectionValidator(nil)
397+
//
398+
// a.SetConnectionValidator(nil)
398399
func (a *Acceptor) SetConnectionValidator(validator ConnectionValidator) {
399400
a.connectionValidator = validator
400401
}

application.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package quickfix
22

3-
//Application interface should be implemented by FIX Applications.
4-
//This is the primary interface for processing messages from a FIX Session.
3+
// Application interface should be implemented by FIX Applications.
4+
// This is the primary interface for processing messages from a FIX Session.
55
type Application interface {
66
//OnCreate notification of a session begin created.
77
OnCreate(sessionID SessionID)

begin_string.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package quickfix
22

3-
//FIX BeginString string values
3+
// FIX BeginString string values
44
const (
55
BeginStringFIX40 = "FIX.4.0"
66
BeginStringFIX41 = "FIX.4.1"

config/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package config
22

33
//NOTE: Additions to this file should be made to both config/doc.go and http://www.quickfixgo.org/docs/
44

5-
//Const configuration settings
5+
// Const configuration settings
66
const (
77
BeginString string = "BeginString"
88
SenderCompID string = "SenderCompID"

0 commit comments

Comments
 (0)