feat: handle instanceID in projections (#3442)

* feat: handle instanceID in projections

* rename functions

* fix key lock

* fix import
This commit is contained in:
Livio Amstutz
2022-04-19 08:26:12 +02:00
committed by GitHub
parent c25d853820
commit 1305c14e49
120 changed files with 2078 additions and 1209 deletions

View File

@@ -912,7 +912,7 @@ type lockMock struct {
}
func (m *lockMock) lock() Lock {
return func(ctx context.Context, _ time.Duration) <-chan error {
return func(ctx context.Context, _ time.Duration, _ string) <-chan error {
m.callCount++
errs := make(chan error)
go func() {
@@ -955,7 +955,7 @@ type unlockMock struct {
}
func (m *unlockMock) unlock() Unlock {
return func() error {
return func(instanceID string) error {
m.callCount++
return m.err
}