refactor(service): UserService accept PasswordHasher now

This commit is contained in:
Голиков Maximillian Антон
2026-10-01 15:29:12 +03:00
parent 4161333bf8
commit cfabbfb5a0
2 changed files with 7 additions and 17 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ func main() {
store := memory.New()
userSvc := service.NewUserService(store.Users())
hasher := service.NewArgon2idHasher()
userSvc := service.NewUserService(store.Users(), hasher)
chatSvc := service.NewChatService(store.Chats(), store.Users())
messageSvc := service.NewMessageService(store.Messages(), store.Chats())