# Replace synchronous \`Store\` lock with an async lock · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9a8b0388fa0dd2f1f0bfd37685dccfed35f97012)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9a8b0388fa0dd2f1f0bfd37685dccfed35f97012

Requested commit: 9a8b0388fa0dd2f1f0bfd37685dccfed35f97012

Commit: 9a8b0388fa0dd2f1f0bfd37685dccfed35f97012

Tree: 5e57f31e927541a853a32ecf786ba1d9efb58fab

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Replace synchronous `Store` lock with an async lock

This also fixes some failures due to `broadcast` and `update_contacts_for_users`
being fallible. As part of this commit, these two functions don't return `Result`
anymore: the reason for this change is that we don't want a request to fail only
because a peer disconnected while we were trying to broadcast a message to them.

```

## Parents

- [273ee0ae58032d400b336d8e4f1344c27527a923](https://git.cafe/gitcafe/zed/commit/273ee0ae58032d400b336d8e4f1344c27527a923?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9a8b0388fa0dd2f1f0bfd37685dccfed35f97012?format=markdown)
