Skip to content

Commit

Permalink
Attach to native and bridged providers for debugging (#753)
Browse files Browse the repository at this point in the history
Tested locally.
  • Loading branch information
thomas11 authored Sep 20, 2023
1 parent ea4a9aa commit c76e476
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions provider/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ const dockerImageTok = "docker:index/image:Image"
// gRPC methods for the hybrid provider

func (dp dockerHybridProvider) Attach(ctx context.Context, attach *rpc.PluginAttach) (*emptypb.Empty, error) {
//TODO implement me
panic("implement me")
_, err := dp.bridgedProvider.Attach(ctx, attach)
if err != nil {
return nil, err
}
return dp.nativeProvider.Attach(ctx, attach)
}

func (dp dockerHybridProvider) Call(ctx context.Context, request *rpc.CallRequest) (*rpc.CallResponse, error) {
Expand Down

0 comments on commit c76e476

Please sign in to comment.