Skip to content

Commit 3cf8cb0

Browse files
authored
Merge pull request #70 from JoshVanL/remote-unused-protobuf
Removes unused protobuf
2 parents 321bd77 + ea49a53 commit 3cf8cb0

File tree

9 files changed

+3060
-10816
lines changed

9 files changed

+3060
-10816
lines changed

api/protos/backend_service.pb.go

Lines changed: 255 additions & 1805 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protos/backend_service_grpc.pb.go

Lines changed: 0 additions & 986 deletions
This file was deleted.

api/protos/orchestrator_service.pb.go

Lines changed: 2785 additions & 7414 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protos/orchestrator_service_grpc.pb.go

Lines changed: 17 additions & 547 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protos/runtime_state.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/executor.go

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,6 @@ func GetActivityExecutionKey(iid string, taskID int32) string {
435435
return iid + "/" + strconv.FormatInt(int64(taskID), 10)
436436
}
437437

438-
// CreateTaskHub implements protos.TaskHubSidecarServiceServer
439-
func (grpcExecutor) CreateTaskHub(context.Context, *protos.CreateTaskHubRequest) (*protos.CreateTaskHubResponse, error) {
440-
return nil, errors.New("unimplemented")
441-
}
442-
443-
// DeleteTaskHub implements protos.TaskHubSidecarServiceServer
444-
func (grpcExecutor) DeleteTaskHub(context.Context, *protos.DeleteTaskHubRequest) (*protos.DeleteTaskHubResponse, error) {
445-
return nil, errors.New("unimplemented")
446-
}
447-
448438
// GetInstance implements protos.TaskHubSidecarServiceServer
449439
func (g *grpcExecutor) GetInstance(ctx context.Context, req *protos.GetInstanceRequest) (*protos.GetInstanceResponse, error) {
450440
metadata, err := g.backend.GetOrchestrationMetadata(ctx, api.InstanceID(req.InstanceId))
@@ -476,11 +466,6 @@ func (g *grpcExecutor) PurgeInstances(ctx context.Context, req *protos.PurgeInst
476466
return resp, nil
477467
}
478468

479-
// QueryInstances implements protos.TaskHubSidecarServiceServer
480-
func (grpcExecutor) QueryInstances(context.Context, *protos.QueryInstancesRequest) (*protos.QueryInstancesResponse, error) {
481-
return nil, errors.New("unimplemented")
482-
}
483-
484469
// RaiseEvent implements protos.TaskHubSidecarServiceServer
485470
func (g *grpcExecutor) RaiseEvent(ctx context.Context, req *protos.RaiseEventRequest) (*protos.RaiseEventResponse, error) {
486471
e := &protos.HistoryEvent{
@@ -696,42 +681,3 @@ func createGetInstanceResponse(req *protos.GetInstanceRequest, metadata *Orchest
696681
return &protos.GetInstanceResponse{Exists: true, OrchestrationState: state}
697682
}
698683

699-
func (executor *grpcExecutor) AbandonTaskActivityWorkItem(ctx context.Context, in *protos.AbandonActivityTaskRequest) (*protos.AbandonActivityTaskResponse, error) {
700-
return nil, nil
701-
}
702-
703-
func (*grpcExecutor) AbandonTaskEntityWorkItem(ctx context.Context, in *protos.AbandonEntityTaskRequest) (*protos.AbandonEntityTaskResponse, error) {
704-
return nil, nil
705-
}
706-
707-
func (*grpcExecutor) AbandonTaskOrchestratorWorkItem(ctx context.Context, in *protos.AbandonOrchestrationTaskRequest) (*protos.AbandonOrchestrationTaskResponse, error) {
708-
return nil, nil
709-
}
710-
711-
func (*grpcExecutor) CleanEntityStorage(ctx context.Context, in *protos.CleanEntityStorageRequest) (*protos.CleanEntityStorageResponse, error) {
712-
return nil, nil
713-
}
714-
715-
func (*grpcExecutor) CompleteEntityTask(ctx context.Context, in *protos.EntityBatchResult) (*protos.CompleteTaskResponse, error) {
716-
return nil, nil
717-
}
718-
719-
func (*grpcExecutor) GetEntity(ctx context.Context, in *protos.GetEntityRequest) (*protos.GetEntityResponse, error) {
720-
return nil, nil
721-
}
722-
723-
func (*grpcExecutor) QueryEntities(ctx context.Context, in *protos.QueryEntitiesRequest) (*protos.QueryEntitiesResponse, error) {
724-
return nil, nil
725-
}
726-
727-
func (*grpcExecutor) RewindInstance(ctx context.Context, in *protos.RewindInstanceRequest) (*protos.RewindInstanceResponse, error) {
728-
return nil, nil
729-
}
730-
731-
func (*grpcExecutor) SignalEntity(ctx context.Context, in *protos.SignalEntityRequest) (*protos.SignalEntityResponse, error) {
732-
return nil, nil
733-
}
734-
735-
func (*grpcExecutor) StreamInstanceHistory(in *protos.StreamInstanceHistoryRequest, srv protos.TaskHubSidecarService_StreamInstanceHistoryServer) error {
736-
return nil
737-
}

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/dapr/durabletask-go
22

3-
go 1.23.1
3+
go 1.26.0
44

55
require (
66
github.com/cenkalti/backoff/v4 v4.3.0
@@ -32,7 +32,6 @@ require (
3232
github.com/openzipkin/zipkin-go v0.4.3 // indirect
3333
github.com/pmezard/go-difflib v1.0.0 // indirect
3434
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
35-
github.com/sirupsen/logrus v1.9.3 // indirect
3635
github.com/stretchr/objx v0.5.2 // indirect
3736
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
3837
go.opentelemetry.io/otel/metric v1.34.0 // indirect
@@ -44,7 +43,6 @@ require (
4443
golang.org/x/text v0.21.0 // indirect
4544
google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 // indirect
4645
gopkg.in/yaml.v3 v3.0.1 // indirect
47-
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect
4846
modernc.org/libc v1.61.9 // indirect
4947
modernc.org/mathutil v1.7.1 // indirect
5048
modernc.org/memory v1.8.2 // indirect

go.sum

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94
4646
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
4747
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
4848
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
49-
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
50-
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
5149
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
5250
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
5351
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
@@ -81,7 +79,6 @@ golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
8179
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
8280
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
8381
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
84-
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
8582
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
8683
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
8784
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
@@ -101,8 +98,6 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV
10198
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
10299
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
103100
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
104-
k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0=
105-
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
106101
modernc.org/cc/v4 v4.24.4 h1:TFkx1s6dCkQpd6dKurBNmpo+G8Zl4Sq/ztJ+2+DEsh0=
107102
modernc.org/cc/v4 v4.24.4/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
108103
modernc.org/ccgo/v4 v4.23.13 h1:PFiaemQwE/jdwi8XEHyEV+qYWoIuikLP3T4rvDeJb00=

0 commit comments

Comments
 (0)