This commit is contained in:
netscrawler
2024-07-04 07:27:31 +03:00
parent 5b11756af6
commit 4977599e87
5 changed files with 6 additions and 7 deletions
+1 -3
View File
@@ -3,7 +3,6 @@ package app
import (
grpcapp "converter/internal/app/grpc"
"log/slog"
"time"
)
type App struct {
@@ -12,8 +11,7 @@ type App struct {
func New(
log *slog.Logger,
grpcPort int,
tokenTTl time.Duration) *App {
grpcPort int) *App {
//TODO: инициализировать хранилище
//TODO: init convert service
+1 -2
View File
@@ -42,7 +42,6 @@ func (c *Converter) Convert(
return 0, 0, fmt.Errorf("%s: %w", op, err)
}
convertedAmount = uint32(float32(amount) * rate.Rate)
convertedAmount = uint32(float32(amount) / rate.Rate)
return convertedAmount, rate.Rate, nil
}