Skip to content

Commit

Permalink
Corrects mongo pkg ref in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ackleymi committed Nov 9, 2023
1 parent f430d0a commit d88cecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _test/test-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
field "github.com/quickfixgo/quickfix/gen/field"
tag "github.com/quickfixgo/quickfix/gen/tag"
"github.com/quickfixgo/quickfix/store/file"
"github.com/quickfixgo/quickfix/store/mongo"
)

var router *quickfix.MessageRouter = quickfix.NewMessageRouter()
Expand Down Expand Up @@ -150,7 +151,7 @@ func main() {
appSettings.GlobalSettings().Set(config.MongoStoreReplicaSet, mongoReplicaSet)
appSettings.GlobalSettings().Set(config.DynamicSessions, "Y")

acceptor, err = quickfix.NewAcceptor(app, quickfix.NewMongoStoreFactory(appSettings), appSettings, fileLogFactory)
acceptor, err = quickfix.NewAcceptor(app, mongo.NewStoreFactory(appSettings), appSettings, fileLogFactory)
case "FILE":
fileStoreRootPath := path.Join(os.TempDir(), fmt.Sprintf("FileStoreTestSuite-%d", os.Getpid()))
fileStorePath := path.Join(fileStoreRootPath, fmt.Sprintf("%d", time.Now().UnixNano()))
Expand Down
2 changes: 0 additions & 2 deletions store/file/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ func (f fileStoreFactory) Create(sessionID quickfix.SessionID) (msgStore quickfi

dirname, err := sessionSettings.Setting(config.FileStorePath)
if err != nil {
if err != nil {
return nil, err

Check failure on line 80 in store/file/filestore.go

View workflow job for this annotation

GitHub Actions / Linter

File is not `gofmt`-ed with `-s` (gofmt)
}
}
var fsync bool
if sessionSettings.HasSetting(config.FileStoreSync) {
Expand Down

0 comments on commit d88cecc

Please sign in to comment.