Skip to content

Commit 10c0105

Browse files
committed
Rename interface
1 parent df8f0a9 commit 10c0105

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

backend/test/e2e.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ func EndToEndBackendTest(t *testing.T, setup func(options ...backend.BackendOpti
834834
type noopWorkflowExecutorCache struct {
835835
}
836836

837-
var _ executor.ExecutorCache = (*noopWorkflowExecutorCache)(nil)
837+
var _ executor.Cache = (*noopWorkflowExecutorCache)(nil)
838838

839839
// Get implements workflow.ExecutorCache
840840
func (*noopWorkflowExecutorCache) Get(ctx context.Context, instance *core.WorkflowInstance) (executor.WorkflowExecutor, bool, error) {

internal/worker/workflow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
type WorkflowWorkerOptions struct {
2424
WorkerOptions
2525

26-
WorkflowExecutorCache executor.ExecutorCache
26+
WorkflowExecutorCache executor.Cache
2727
WorkflowExecutorCacheSize int
2828
WorkflowExecutorCacheTTL time.Duration
2929
}
@@ -50,7 +50,7 @@ func NewWorkflowWorker(
5050
type WorkflowTaskWorker struct {
5151
backend backend.Backend
5252
registry *registry.Registry
53-
cache executor.ExecutorCache
53+
cache executor.Cache
5454
logger *slog.Logger
5555
}
5656

worker/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Options struct {
4747

4848
// WorkflowExecutorCache is the cache to use for workflow executors. If nil, a default cache implementation
4949
// will be used.
50-
WorkflowExecutorCache executor.ExecutorCache
50+
WorkflowExecutorCache executor.Cache
5151
}
5252

5353
var DefaultOptions = Options{

workflow/executor/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/cschleiden/go-workflows/core"
77
)
88

9-
type ExecutorCache interface {
9+
type Cache interface {
1010
Store(ctx context.Context, instance *core.WorkflowInstance, workflow WorkflowExecutor) error
1111
Evict(ctx context.Context, instance *core.WorkflowInstance) error
1212
Get(ctx context.Context, instance *core.WorkflowInstance) (WorkflowExecutor, bool, error)

0 commit comments

Comments
 (0)