mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
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:
4
vote.go
4
vote.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user