Skip to content

Commit bbc33a2

Browse files
authored
Merge pull request #67 from hellofresh/patch/typos
Fixed bunch of typos
2 parents 6804e3e + d507367 commit bbc33a2

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
GoEngine is an Event Sourcing library written for GoLang.
44

5-
The goal of this library is to reduce the amount of time you have to spend thinking about the infrastructure so you can focus on
6-
implementing your Domains and Business logic!
5+
The goal of this library is to reduce the amount of time you have to spend thinking about the infrastructure, so you can
6+
focus on implementing your Domains and Business logic!

docs/quick-start.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,14 @@ import (
338338

339339
driverSQL "github.com/hellofresh/goengine/v2/driver/sql"
340340
"github.com/hellofresh/goengine/v2/extension/pq"
341+
"github.com/hellofresh/goengine/v2/strategy/json/sql/postgres"
341342
)
342343

343344
func main() {
344345
// ...
345346

346-
var manager postgres.SingleStreamStrategy
347-
347+
var manager *postgres.SingleStreamManager
348+
348349
projector, err := manager.NewStreamProjector(
349350
"bank_account_projections",
350351
NewBankTotalsProjection(postgresDB),

driver/sql/eventstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ import (
99

1010
// ReadOnlyEventStore an interface describing a readonly event store that supports providing a SQL conn
1111
type ReadOnlyEventStore interface {
12-
// LoadWithConnection returns a eventstream based on the provided constraints using the provided Queryer
12+
// LoadWithConnection returns an eventstream based on the provided constraints using the provided Queryer
1313
LoadWithConnection(ctx context.Context, conn Queryer, streamName goengine.StreamName, fromNumber int64, count *uint, metadataMatcher metadata.Matcher) (goengine.EventStream, error)
1414
}

driver/sql/listener.go

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

33
import "context"
44

5-
// Listener listens to a event stream and triggers a notification when a event was appended
5+
// Listener listens to an event stream and triggers a notification when a event was appended
66
type Listener interface {
77
// Listen starts listening to the event stream and call the trigger when a event was appended
88
Listen(ctx context.Context, trigger ProjectionTrigger) error

driver/sql/metrics_nop.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ var NopMetrics Metrics = &nopMetrics{}
55

66
type nopMetrics struct{}
77

8-
func (nm *nopMetrics) ReceivedNotification(isNotification bool) {}
9-
func (nm *nopMetrics) QueueNotification(notification *ProjectionNotification) {}
10-
func (nm *nopMetrics) StartNotificationProcessing(notification *ProjectionNotification) {}
11-
func (nm *nopMetrics) FinishNotificationProcessing(notification *ProjectionNotification, success bool) {
12-
}
8+
func (nm *nopMetrics) ReceivedNotification(bool) {}
9+
func (nm *nopMetrics) QueueNotification(*ProjectionNotification) {}
10+
func (nm *nopMetrics) StartNotificationProcessing(*ProjectionNotification) {}
11+
func (nm *nopMetrics) FinishNotificationProcessing(*ProjectionNotification, bool) {}

driver/sql/postgres/advisory_lock_aggregate_projection_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var _ driverSQL.AggregateProjectorStorage = &AdvisoryLockAggregateProjectionStorage{}
1515

16-
// AdvisoryLockAggregateProjectionStorage is a AggregateProjectorStorage that uses a advisory locks to lock a projection
16+
// AdvisoryLockAggregateProjectionStorage is a AggregateProjectorStorage that uses an advisory locks to lock a projection
1717
type AdvisoryLockAggregateProjectionStorage struct {
1818
stateSerialization driverSQL.ProjectionStateSerialization
1919
useLockField bool

driver/sql/postgres/advisory_lock_stream_projection_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var _ driverSQL.StreamProjectorStorage = &AdvisoryLockStreamProjectionStorage{}
1515

16-
// AdvisoryLockStreamProjectionStorage is a StreamProjectorStorage that uses a advisory locks to lock a projection
16+
// AdvisoryLockStreamProjectionStorage is a StreamProjectorStorage that uses an advisory locks to lock a projection
1717
type AdvisoryLockStreamProjectionStorage struct {
1818
projectionName string
1919
projectionStateSerialization driverSQL.ProjectionStateSerialization

driver/sql/postgres/eventstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func NewEventStore(
7979
}, nil
8080
}
8181

82-
// Create creates the database table, index etc needed for the event stream
82+
// Create creates the database table, index etc. needed for the event stream
8383
func (e *EventStore) Create(ctx context.Context, streamName goengine.StreamName) error {
8484
tableName, err := e.tableName(streamName)
8585
if err != nil {

driver/sql/projection.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ type (
4747
EncodeState(obj interface{}) ([]byte, error)
4848
}
4949

50-
// ProjectionErrorCallback is a function used to determin what action to take based on a failed projection
50+
// ProjectionErrorCallback is a function used to determine what action to take based on a failed projection
5151
ProjectionErrorCallback func(err error, notification *ProjectionNotification) ProjectionErrorAction
5252

5353
// ProjectionErrorAction a type containing the action that the projector should take after an error
5454
ProjectionErrorAction int
5555

56-
// EventStreamLoader loads a event stream based on the provided notification and state
56+
// EventStreamLoader loads an event stream based on the provided notification and state
5757
EventStreamLoader func(ctx context.Context, conn *sql.Conn, notification *ProjectionNotification, position int64) (goengine.EventStream, error)
5858

5959
// ProjectorStorage is an interface for handling the projection storage
6060
ProjectorStorage interface {
61-
// Acquire this function is used to acquire the projection and it's projectionState
61+
// Acquire this function is used to acquire the projection and its projectionState.
6262
// A projection can only be acquired once and must be released using the returned func
6363
Acquire(ctx context.Context, conn *sql.Conn, notification *ProjectionNotification) (ProjectorTransaction, int64, error)
6464
}

projection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type (
3333
// }
3434
// }
3535
Query interface {
36-
// init initializes the state of the Query
36+
// Init initializes the state of the Query
3737
Init(ctx context.Context) (interface{}, error)
3838

3939
// Handlers return the handlers for a set of messages

0 commit comments

Comments
 (0)