Skip to content

Commit

Permalink
Merge pull request #39 from tpiperatgod/main
Browse files Browse the repository at this point in the history
remove ctx.DestroyDaprClient() in knative runtime
  • Loading branch information
benjaminhuo authored Mar 5, 2022
2 parents 777cba1 + b474cd0 commit 68c7020
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ func (ctx *FunctionContext) InitDaprClientIfNil() {

if ctx.daprClient == nil {
klog.Errorf("failed to init dapr client: %v", err)
panic(err)
}
}
}
Expand Down
1 change: 0 additions & 1 deletion runtime/knative/knative.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func (r *Runtime) RegisterOpenFunction(
return
}
})
ctx.DestroyDaprClient()
return nil
}

Expand Down

0 comments on commit 68c7020

Please sign in to comment.