Skip to content

Commit 90442ea

Browse files
committed
Ensure monoprocessBackend implements the backend.Backend interface
1 parent 280a5cc commit 90442ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/monoprocess/monoprocess.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type monoprocessBackend struct {
2222
logger *slog.Logger
2323
}
2424

25+
var _ backend.Backend = (*monoprocessBackend)(nil)
26+
2527
// NewMonoprocessBackend wraps an existing backend and improves its responsiveness
2628
// in case the backend and worker are running in the same process. This backend
2729
// uses channels to notify the worker every time there is a new task ready to be

0 commit comments

Comments
 (0)