Skip to content

Commit

Permalink
Fix StopProvider RPC function call in v6 (#301)
Browse files Browse the repository at this point in the history
* Fix StopProvider RPC function call in v6

* add changelog entry
  • Loading branch information
austinvalle authored Jun 16, 2023
1 parent 47d4a39 commit 9d4afbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/unreleased/BUG FIXES-20230616-153754.yaml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion tfprotov6/tf6server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d4afbc

Please sign in to comment.