Allow use of rpc client as an alternative to the metadata client (#1918)

* use updated aur client

* add logger to rpc client

* update go.mod
This commit is contained in:
Jo
2023-02-20 12:20:48 +01:00
committed by GitHub
parent 2f5fd5cb1c
commit f1d086df1d
18 changed files with 81 additions and 100 deletions

View File

@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/Jguer/aur"
"github.com/Jguer/aur/rpc"
"github.com/Jguer/votar/pkg/vote"
"github.com/leonelquinteros/gotext"
@@ -22,7 +22,7 @@ func (e *ErrAURVote) Error() string {
}
func handlePackageVote(ctx context.Context,
targets []string, aurClient aur.ClientInterface,
targets []string, aurClient rpc.ClientInterface,
voteClient *vote.Client, splitN int, upvote bool,
) error {
infos, err := query.AURInfoPrint(ctx, aurClient, targets, splitN)