Skip to content

Commit 9d4afbc

Browse files
authored
Fix StopProvider RPC function call in v6 (#301)
* Fix StopProvider RPC function call in v6 * add changelog entry
1 parent 47d4a39 commit 9d4afbc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: BUG FIXES
2+
body: 'tfprotov6/tf6server: Ensure interrupts route to StopProvider RPC'
3+
time: 2023-06-16T15:37:54.001208-04:00
4+
custom:
5+
Issue: "301"

tfprotov6/tf6server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func (s *server) stop() {
581581
s.stopCh = make(chan struct{})
582582
}
583583

584-
func (s *server) Stop(ctx context.Context, req *tfplugin6.StopProvider_Request) (*tfplugin6.StopProvider_Response, error) {
584+
func (s *server) StopProvider(ctx context.Context, req *tfplugin6.StopProvider_Request) (*tfplugin6.StopProvider_Response, error) {
585585
rpc := "StopProvider"
586586
ctx = s.loggingContext(ctx)
587587
ctx = logging.RpcContext(ctx, rpc)

0 commit comments

Comments
 (0)