@@ -78,7 +78,7 @@ func NewAdvisoryLockAggregateProjectionStorage(
7878 `UPDATE %[1]s SET failed = TRUE WHERE aggregate_id = $1` ,
7979 projectionTableQuoted ,
8080 ),
81- // queryAcquireLock uses a `WITH` in order to insert if the projection is unknown other wise the row won't be locked
81+ // queryAcquireLock uses a `WITH` in order to insert if the projection is unknown otherwise the row won't be locked
8282 // The reason for using `INSERT SELECT` instead of `INSERT VALUES ON CONFLICT DO NOTHING` is that `ON CONFLICT` will
8383 // increase the `no SERIAL` value.
8484 queryAcquireLock : fmt .Sprintf (
@@ -120,7 +120,7 @@ func (a *AdvisoryLockAggregateProjectionStorage) PersistFailure(conn driverSQL.E
120120}
121121
122122// Acquire returns a driverSQL.ProjectorTransaction and the position of the projection within the event stream when a
123- // lock is acquired for the specified aggregate_id. Otherwise an error is returned indicating why the lock could not be acquired.
123+ // lock is acquired for the specified aggregate_id. Otherwise, an error is returned indicating why the lock could not be acquired.
124124func (a * AdvisoryLockAggregateProjectionStorage ) Acquire (
125125 ctx context.Context ,
126126 conn * sql.Conn ,
@@ -153,7 +153,7 @@ func (a *AdvisoryLockAggregateProjectionStorage) Acquire(
153153
154154 if locked || failed {
155155 // The projection was locked by another process that died and for this reason not unlocked
156- // In this case a application needs to decide what to do to avoid invalid projection states
156+ // In this case an application needs to decide what to do to avoid invalid projection states
157157 if err := a .releaseProjectionConnectionLock (conn , aggregateID ); err != nil {
158158 a .logger .Error ("failed to release lock for a projection with a locked row" , func (e goengine.LoggerEntry ) {
159159 logFields (e )
0 commit comments