From 3f5366770d20cdc3accb501484c4055cea6e938e Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Mon, 2 Dec 2024 15:24:35 -0400 Subject: [PATCH] dolar from gitea --- internal/adapters/dolar/dolar.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/adapters/dolar/dolar.go b/internal/adapters/dolar/dolar.go index 2b38f8d..af2d615 100644 --- a/internal/adapters/dolar/dolar.go +++ b/internal/adapters/dolar/dolar.go @@ -3,13 +3,13 @@ package dolar import ( "context" - "github.com/maximotejeda/dolar/proto/golang/dolar" + dl "github.com/maximotejeda/dolar/proto/golang/dolar" "github.com/maximotejeda/us_dop_scrapper/internal/application/core/domain" "google.golang.org/grpc" ) type Adapter struct { - dolar dolar.DollarClient + dolar dl.DollarClient conn *grpc.ClientConn } @@ -20,8 +20,8 @@ func NewAdapter(conn *grpc.ClientConn) (*Adapter, error) { func (a *Adapter) NewHistory(history *domain.History) error { _, err := a.dolar.NewHistory(context.Background(), - &dolar.AddDolarRequest{ - Institution: &dolar.History{ + &dl.AddDolarRequest{ + Institution: &dl.History{ Name: history.Name, Compra: float32(history.Compra), Venta: float32(history.Venta),