chore(proto): replace import path.

Signed-off-by: GiteaBot <teabot@gitea.io>
This commit is contained in:
GiteaBot
2022-08-17 14:25:14 +08:00
committed by Jason Song
parent 7d55fd57c9
commit 307c2c63de
6 changed files with 20 additions and 18 deletions

View File

@ -5,13 +5,13 @@ import (
"errors"
"time"
v1 "gitea.com/gitea/proto/gen/proto/v1"
runnerv1 "gitea.com/gitea/proto-go/runner/v1"
"gitea.com/gitea/act_runner/client"
log "github.com/sirupsen/logrus"
)
func New(cli client.Client, dispatch func(context.Context, *v1.Stage) error) *Poller {
func New(cli client.Client, dispatch func(context.Context, *runnerv1.Stage) error) *Poller {
return &Poller{
Client: cli,
Dispatch: dispatch,
@ -21,7 +21,7 @@ func New(cli client.Client, dispatch func(context.Context, *v1.Stage) error) *Po
type Poller struct {
Client client.Client
Dispatch func(context.Context, *v1.Stage) error
Dispatch func(context.Context, *runnerv1.Stage) error
routineGroup *routineGroup
}