compilation fixed
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
|||||||
"github.com/tech/sendico/ledger/internal/appversion"
|
"github.com/tech/sendico/ledger/internal/appversion"
|
||||||
"github.com/tech/sendico/pkg/connector/params"
|
"github.com/tech/sendico/pkg/connector/params"
|
||||||
"github.com/tech/sendico/pkg/merrors"
|
"github.com/tech/sendico/pkg/merrors"
|
||||||
connectorv1 "github.com/tech/sendico/pkg/proto/connector/v1"
|
|
||||||
moneyv1 "github.com/tech/sendico/pkg/proto/common/money/v1"
|
moneyv1 "github.com/tech/sendico/pkg/proto/common/money/v1"
|
||||||
|
connectorv1 "github.com/tech/sendico/pkg/proto/connector/v1"
|
||||||
ledgerv1 "github.com/tech/sendico/pkg/proto/ledger/v1"
|
ledgerv1 "github.com/tech/sendico/pkg/proto/ledger/v1"
|
||||||
"google.golang.org/protobuf/types/known/structpb"
|
"google.golang.org/protobuf/types/known/structpb"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
@@ -20,6 +20,7 @@ import (
|
|||||||
const ledgerConnectorID = "ledger"
|
const ledgerConnectorID = "ledger"
|
||||||
|
|
||||||
type connectorAdapter struct {
|
type connectorAdapter struct {
|
||||||
|
connectorv1.UnimplementedConnectorServiceServer
|
||||||
svc *Service
|
svc *Service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -236,13 +236,6 @@ func (s *Service) GetStatement(ctx context.Context, req *ledgerv1.GetStatementRe
|
|||||||
return responder(ctx)
|
return responder(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Service) pingStorage(ctx context.Context) error {
|
|
||||||
if s.storage == nil {
|
|
||||||
return errStorageNotInitialized
|
|
||||||
}
|
|
||||||
return s.storage.Ping(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *Service) quoteFeesForCredit(ctx context.Context, req *ledgerv1.PostCreditRequest) ([]*ledgerv1.PostingLine, error) {
|
func (s *Service) quoteFeesForCredit(ctx context.Context, req *ledgerv1.PostCreditRequest) ([]*ledgerv1.PostingLine, error) {
|
||||||
if !s.fees.available() {
|
if !s.fees.available() {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user