From 9d4afbce62c7b24014d5695fd0b1070d8b7b81a8 Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Fri, 16 Jun 2023 15:48:25 -0400 Subject: [PATCH] Fix StopProvider RPC function call in v6 (#301) * Fix StopProvider RPC function call in v6 * add changelog entry --- .changes/unreleased/BUG FIXES-20230616-153754.yaml | 5 +++++ tfprotov6/tf6server/server.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/BUG FIXES-20230616-153754.yaml diff --git a/.changes/unreleased/BUG FIXES-20230616-153754.yaml b/.changes/unreleased/BUG FIXES-20230616-153754.yaml new file mode 100644 index 00000000..55520d0c --- /dev/null +++ b/.changes/unreleased/BUG FIXES-20230616-153754.yaml @@ -0,0 +1,5 @@ +kind: BUG FIXES +body: 'tfprotov6/tf6server: Ensure interrupts route to StopProvider RPC' +time: 2023-06-16T15:37:54.001208-04:00 +custom: + Issue: "301" diff --git a/tfprotov6/tf6server/server.go b/tfprotov6/tf6server/server.go index 78fc9b2c..a639e82d 100644 --- a/tfprotov6/tf6server/server.go +++ b/tfprotov6/tf6server/server.go @@ -581,7 +581,7 @@ func (s *server) stop() { s.stopCh = make(chan struct{}) } -func (s *server) Stop(ctx context.Context, req *tfplugin6.StopProvider_Request) (*tfplugin6.StopProvider_Response, error) { +func (s *server) StopProvider(ctx context.Context, req *tfplugin6.StopProvider_Request) (*tfplugin6.StopProvider_Response, error) { rpc := "StopProvider" ctx = s.loggingContext(ctx) ctx = logging.RpcContext(ctx, rpc)