Skip to content

Unnecessary lock in EventStoreRepository #3

Description

@alkampfergit

In dispose method of EventStoreRepository there is a lock statement that is unnecessary.

EventStoreRepository is not thread safe, thus, the lock is not necessary.

          lock (_streams)
        {
            foreach (var stream in _streams)
            {
                stream.Value.Dispose();
            }
          ....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions