v.0.0.4.8 Добавлено шифрование сообщения
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
madipo2611 2025-08-21 00:58:59 +03:00
parent 82f784996a
commit 3d5be6d7e4

View File

@ -32,9 +32,14 @@ type server struct {
}
func NewServer(db *pgxpool.Pool, rabbitConn *amqp.Connection) *server {
cryptoService, err := crypto.NewCryptoService()
if err != nil {
log.Printf("ERROR: Failed to create crypto service: %v", err)
}
return &server{
db: db,
rabbitConn: rabbitConn,
crypto: cryptoService,
logger: log.New(os.Stdout, "MESSAGE_SERVICE: ", log.LstdFlags|log.Lmicroseconds|log.Lshortfile),
}
}