Skip to content

Commit

Permalink
Merge pull request #63 from microsoft/fix/backingstore-type
Browse files Browse the repository at this point in the history
Fix backingstore type
  • Loading branch information
baywet authored Feb 28, 2023
2 parents ba94f54 + cd8d6e0 commit b8f3005
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.17.1] - 2023-01-28

### Added

- Adds a type qualifier for backing store instance type to be `BackingStoreFactory`.

### Changed

## [0.17.0] - 2023-01-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion store/backing_store_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type BackingStoreFactory func() BackingStore

// BackingStoreFactoryInstance returns a backing store instance.
// if none exists an instance of InMemoryBackingStore is initialized and returned
var BackingStoreFactoryInstance = NewInMemoryBackingStore
var BackingStoreFactoryInstance BackingStoreFactory = NewInMemoryBackingStore
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func CollectionStructCast[R interface{}, T any](items []T) []R {
return cast
}

// InvokeParsableWriter executes the ParsableAction in a nil safe way
// InvokeParsableAction nil safe execution of ParsableAction
func InvokeParsableAction(action serialization.ParsableAction, parsable serialization.Parsable) {
if action != nil {
action(parsable)
Expand Down

0 comments on commit b8f3005

Please sign in to comment.