Skip to content

Commit

Permalink
Merge branch 'master' into history_api
Browse files Browse the repository at this point in the history
  • Loading branch information
Florimond authored Jan 28, 2024
2 parents a11ef40 + 374de74 commit b6a5ef8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ environment:
install:
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.16.windows-amd64.zip
- 7z x go1.16.windows-amd64.zip -y -oC:\ > NUL
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.20.windows-amd64.zip
- 7z x go1.20.windows-amd64.zip -y -oC:\ > NUL
- go version

build_script:
Expand Down
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ goto :end
set GOARCH=%2
go tool dist install pkg/runtime
go install -a std
go build -o build/emitter-%1-%2%3 -i -ldflags "-X github.com/emitter-io/emitter/internal/command/version.version=%APPVEYOR_BUILD_VERSION% -X github.com/emitter-io/emitter/internal/command/version.commit=%APPVEYOR_REPO_COMMIT%" .
go build -o build/emitter-%1-%2%3 -ldflags "-X github.com/emitter-io/emitter/internal/command/version.version=%APPVEYOR_BUILD_VERSION% -X github.com/emitter-io/emitter/internal/command/version.commit=%APPVEYOR_REPO_COMMIT%" .
:end
6 changes: 5 additions & 1 deletion internal/broker/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ func NewService(ctx context.Context, cfg *config.Config) (s *Service, err error)
s.surveyor = survey.New(s.pubsub, s.cluster)
s.presence = presence.New(s, s.pubsub, s.surveyor, s.subscriptions)
if s.cluster != nil {
s.surveyor.HandleFunc(s.presence, ssdstore, memstore)
if s.storage.Name() == ssdstore.Name() {
s.surveyor.HandleFunc(s.presence, ssdstore)
} else if s.storage.Name() == memstore.Name() {
s.surveyor.HandleFunc(s.presence, memstore)
}
}

// Create a new cipher from the licence provided
Expand Down

0 comments on commit b6a5ef8

Please sign in to comment.