From 5d849cea33f637e587e6d4f7f1bdd9a4794de86e Mon Sep 17 00:00:00 2001 From: "Bo-Yi.Wu" Date: Sat, 19 Nov 2022 09:00:33 +0800 Subject: [PATCH] chore(runner): remove update runner status Signed-off-by: Bo-Yi.Wu --- go.mod | 4 ++-- go.sum | 8 ++++---- routers/api/bots/runner/runner.go | 9 --------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 63346c92b3..50a04a9582 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require ( code.gitea.io/gitea-vet v0.2.2-0.20220122151748-48ebc902541b code.gitea.io/sdk/gitea v0.15.1 codeberg.org/gusted/mcaptcha v0.0.0-20220723083913-4f3072e1d570 - gitea.com/gitea/proto-go v0.0.0-20221028125601-35c4f6b05835 - gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb + gitea.com/gitea/proto-go v0.0.0-20221118134050-62e4a9f56c7d + gitea.com/go-chi/binding v0.0.0-20221013104517-b29891619681 gitea.com/go-chi/cache v0.2.0 gitea.com/go-chi/captcha v0.0.0-20211013065431-70641c1a35d5 gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8 diff --git a/go.sum b/go.sum index efb24e35f4..6943873dc2 100644 --- a/go.sum +++ b/go.sum @@ -83,10 +83,10 @@ git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078 h1:cliQ4H git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078/go.mod h1:g/V2Hjas6Z1UHUp4yIx6bATpNzJ7DYtD0FG3+xARWxs= gitea.com/gitea/act v0.0.0-20221104080934-57978c14b59d h1:Xfdo11dwHpcjFtH0qebucf6zUqei8z9eZ4f0IMvoLjw= gitea.com/gitea/act v0.0.0-20221104080934-57978c14b59d/go.mod h1:lpzib6X73FHLSaTqTakan1xcsCAVhlZvPSpLns7jkRo= -gitea.com/gitea/proto-go v0.0.0-20221028125601-35c4f6b05835 h1:27PhT7Nli/pgRo1bDYVZ+hlCKuF9cfFuo+y9muaPVJY= -gitea.com/gitea/proto-go v0.0.0-20221028125601-35c4f6b05835/go.mod h1:hD8YwSHusjwjEEgubW6XFvnZuNhMZTHz6lwjfltEt/Y= -gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb h1:Yy0Bxzc8R2wxiwXoG/rECGplJUSpXqCsog9PuJFgiHs= -gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb/go.mod h1:77TZu701zMXWJFvB8gvTbQ92zQ3DQq/H7l5wAEjQRKc= +gitea.com/gitea/proto-go v0.0.0-20221118134050-62e4a9f56c7d h1:xqNMHMmgliaehWAzMtWdqL6/ThdrYLZa/wPky9XdnMU= +gitea.com/gitea/proto-go v0.0.0-20221118134050-62e4a9f56c7d/go.mod h1:hD8YwSHusjwjEEgubW6XFvnZuNhMZTHz6lwjfltEt/Y= +gitea.com/go-chi/binding v0.0.0-20221013104517-b29891619681 h1:MMSPgnVULVwV9kEBgvyEUhC9v/uviZ55hPJEMjpbNR4= +gitea.com/go-chi/binding v0.0.0-20221013104517-b29891619681/go.mod h1:77TZu701zMXWJFvB8gvTbQ92zQ3DQq/H7l5wAEjQRKc= gitea.com/go-chi/cache v0.0.0-20210110083709-82c4c9ce2d5e/go.mod h1:k2V/gPDEtXGjjMGuBJiapffAXTv76H4snSmlJRLUhH0= gitea.com/go-chi/cache v0.2.0 h1:E0npuTfDW6CT1yD8NMDVc1SK6IeRjfmRL2zlEsCEd7w= gitea.com/go-chi/cache v0.2.0/go.mod h1:iQlVK2aKTZ/rE9UcHyz9pQWGvdP9i1eI2spOpzgCrtE= diff --git a/routers/api/bots/runner/runner.go b/routers/api/bots/runner/runner.go index eb41e986f8..629ad5669b 100644 --- a/routers/api/bots/runner/runner.go +++ b/routers/api/bots/runner/runner.go @@ -37,15 +37,6 @@ type Service struct { runnerv1connect.UnimplementedRunnerServiceHandler } -// UpdateRunner update runner status or other data. -func (s *Service) UpdateRunner( - _ context.Context, - _ *connect.Request[runnerv1.UpdateRunnerRequest], -) (*connect.Response[runnerv1.UpdateRunnerResponse], error) { - // FIXME: we don't need it any longer - return connect.NewResponse(&runnerv1.UpdateRunnerResponse{}), nil -} - // Register for new runner. func (s *Service) Register( ctx context.Context,