Open carusyte opened 6 years ago
I attempted to verify the fix in my environment, but I don't know how to redirect the original gleam package to my fork without breaking all the imports and build a fresh gleam binary using my fork. Working on it...
Actually it has nothing to do with the defer
statement, the closing is assured to be called after the execution of fn
anyway...
However I've fixed the issue by making some adjustments to the grpc stuff. Please consider the pull request #81 if anybody else is experiencing the same issue.
I quite frequently got the following kind of error messages in one environment and not the other:
As I look into the code, I found that the grpc connection is closed within 50 ms without knowing if the function has finished its job with the grpc connection. I presume this could be the cause. Would it be safer to call the
grpcConection.Close()
after the return offn(client)
execution?