Skip to content

Commit

Permalink
Merge pull request #16 from Senzing/issue-15.dockter.1
Browse files Browse the repository at this point in the history
Issue 15.dockter.1
  • Loading branch information
docktermj authored Jun 16, 2023
2 parents 69e082c + 80bff5d commit 4feb815
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [0.1.1] - 2023-06-16

- Update dependencies
- github.com/senzing/go-observing v0.2.6
- github.com/senzing/senzing-tools v0.2.9-0.20230613173043-18f1bd4cafdb
- github.com/spf13/viper v1.16.0
- google.golang.org/grpc v1.56.0

### Added to 0.1.1

## [0.1.0] - 2023-05-17

### Added to 0.1.0
Expand Down
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func PreRun(cobraCommand *cobra.Command, args []string) {

// Used in construction of cobra.Command
func RunE(_ *cobra.Command, _ []string) error {
var err error = nil
ctx := context.Background()

// TODO: Support various gRPC server options.
Expand All @@ -93,8 +92,7 @@ func RunE(_ *cobra.Command, _ []string) error {
Port: viper.GetInt(option.GrpcPort),
ServerOptions: serverOptions,
}
err = observer.Serve(ctx)
return err
return observer.Serve(ctx)
}

// Used in construction of cobra.Command
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/senzing/observe
go 1.20

require (
github.com/senzing/go-observing v0.2.5
github.com/senzing/go-observing v0.2.6
github.com/senzing/senzing-tools v0.2.9-0.20230613173043-18f1bd4cafdb
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/senzing/go-observing v0.2.5 h1:QNcXOWIz4O9u/oEEqUiZ59L+oZPsyOA6kDzQAIYLbnA=
github.com/senzing/go-observing v0.2.5/go.mod h1:sLweF5OysRAD65NLNm63o1IpOqN6VyXfgRDozc+pQy8=
github.com/senzing/go-observing v0.2.6 h1:7qY/W7wMvvMApIJEsmsNbbgduvNsz+UjNc00UlhyqiA=
github.com/senzing/go-observing v0.2.6/go.mod h1:JnoKy/J/OPcn2ea5kChWpHysnEUD+IqHHwoAVdpzvXU=
github.com/senzing/senzing-tools v0.2.9-0.20230613173043-18f1bd4cafdb h1:8a8R52umJ5n43gLUuXufjDlyjLv7ZoP2sRTJi4WD/hU=
github.com/senzing/senzing-tools v0.2.9-0.20230613173043-18f1bd4cafdb/go.mod h1:2VSJdVnn0VuZkntb87id+5iPMgLWMVL65Hyms7UyCC0=
github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM=
Expand Down
4 changes: 1 addition & 3 deletions observer/observer_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ Output
See the example output.
*/
func (observerImpl *ObserverImpl) Serve(ctx context.Context) error {
var err error = nil

// Create a Subject.

aSubject := &subject.SubjectImpl{}
Expand All @@ -46,7 +44,7 @@ func (observerImpl *ObserverImpl) Serve(ctx context.Context) error {
Id: "observe",
}

err = aSubject.RegisterObserver(ctx, anObserver)
err := aSubject.RegisterObserver(ctx, anObserver)
if err != nil {
return err
}
Expand Down

0 comments on commit 4feb815

Please sign in to comment.