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),