1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-05-31 22:09:37 +02:00

style fix

This commit is contained in:
Sergey Konstantinov 2023-09-22 09:45:51 +03:00
parent 9e534d3a47
commit e23823f014
2 changed files with 9 additions and 9 deletions

View File

@ -130,10 +130,10 @@ With this approach, we can implement not only locks, but also various scenarios
```typescript
lock = await this.acquireLock(
'offerFullView', '10s', {
// Who is trying to acquire a lock
// and for what reason
reason: 'userSelectOffer',
offer
// Who is trying to acquire a lock
// and for what reason
reason: 'userSelectOffer',
offer
}
);
```

View File

@ -130,11 +130,11 @@ class SearchBoxComposer {
```typescript
lock = await this.acquireLock(
'offerFullView', '10s', {
// Добавляем описание,
// кто и зачем пытается
// выполнить блокировку
reason: 'userSelectOffer',
offer
// Добавляем описание,
// кто и зачем пытается
// выполнить блокировку
reason: 'userSelectOffer',
offer
}
);
```