Skip to content

Commit

Permalink
add interface guards
Browse files Browse the repository at this point in the history
  • Loading branch information
pvormste committed Apr 26, 2023
1 parent 7c68d19 commit b1cd2ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/graphql/execution_engine_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,3 +326,9 @@ func (e *ExecutionEngineV2) getCachedPlan(postProcessor *postprocess.Processor,
func (e *ExecutionEngineV2) GetWebsocketBeforeStartHook() WebsocketBeforeStartHook {
return e.config.websocketBeforeStartHook
}

// Interface Guards
var (
_ CustomExecutionEngineV2 = (*ExecutionEngineV2)(nil)
_ ExecutionEngineV2Executor = (*ExecutionEngineV2)(nil)
)
5 changes: 5 additions & 0 deletions pkg/graphql/execution_engine_v2_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,8 @@ func (c *CustomExecutionEngineV2Executor) Execute(ctx context.Context, operation
c.ExecutionStages.RequiredStages.ResolverStage.Teardown()
return nil
}

// Interface Guards
var (
_ ExecutionEngineV2Executor = (*CustomExecutionEngineV2Executor)(nil)
)

0 comments on commit b1cd2ae

Please sign in to comment.