Skip to content

Commit

Permalink
Expect GetContext for context v2 resources
Browse files Browse the repository at this point in the history
The getter interfaces for v2-context-only resources was incorrect and it
expected us to have a parameter called contextv2. This won't work for
our use-cases.

This fixes the accessor, thus making the compat middleware work.

Signed-off-by: Juan Antonio Osorio <[email protected]>
  • Loading branch information
JAORMX committed Nov 22, 2024
1 parent 0c315ea commit b84e531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controlplane/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type HasProtoContextV2Compat interface {

// HasProtoContextV2 is an interface that can be implemented by a request
type HasProtoContextV2 interface {
GetContextV2() *pb.ContextV2
GetContext() *pb.ContextV2
}

// HasProtoContext is an interface that can be implemented by a request
Expand Down

0 comments on commit b84e531

Please sign in to comment.