Skip to content

Commit

Permalink
Have fixed delay during creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
shishnk committed Apr 14, 2024
1 parent d2ca05a commit a56b7f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public async Task<IResponseMessage> Handle(CreatedUserIntegrationEvent @event)
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
var result = await mediator.Send(new CreateUserCommand
{
TelegramId = @event.UserTelegramId, // TODO
TelegramId = @event.UserTelegramId,
Username = @event.Username,
MobileNumber = @event.MobileNumber,
RegisteredAt = @event.RegisteredAt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private Task HandleUpdateInnerAsync(ITelegramBotClient botClient, Update update,

try
{
await UpdateUsersCacheAsync(message, bus, cts.Token);
_ = UpdateUsersCacheAsync(message, bus, cts.Token);
var result = await _telegramCommandFactory.StartCommand(messageText, chatId);

if (result.IsFailed)
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ services:
condition: service_healthy
rabbitmq:
condition: service_healthy
redis:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8078
Expand Down

0 comments on commit a56b7f8

Please sign in to comment.