aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_channel/channel_connectivity.c
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2017-03-22 18:48:00 -0700
committerGravatar GitHub <noreply@github.com>2017-03-22 18:48:00 -0700
commit55837563c94cb78ba9d0ee5ee75f3be35cdd415b (patch)
treeab27568840f0ccf1a48b03b496cb18b565d0f854 /src/core/ext/client_channel/channel_connectivity.c
parent48fda550acc5edd7785d5b58169d2e3868fbf42a (diff)
parent3d194ad7a3efbb2ba159f021b9692f8b2dec9f88 (diff)
Merge pull request #10109 from ncteisen/error-slice-optimization
Error slice optimization
Diffstat (limited to 'src/core/ext/client_channel/channel_connectivity.c')
-rw-r--r--src/core/ext/client_channel/channel_connectivity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/client_channel/channel_connectivity.c b/src/core/ext/client_channel/channel_connectivity.c
index dd70bc2c6c..f6cb3b9115 100644
--- a/src/core/ext/client_channel/channel_connectivity.c
+++ b/src/core/ext/client_channel/channel_connectivity.c
@@ -139,8 +139,8 @@ static void partly_done(grpc_exec_ctx *exec_ctx, state_watcher *w,
error = GRPC_ERROR_NONE;
} else {
if (error == GRPC_ERROR_NONE) {
- error =
- GRPC_ERROR_CREATE("Timed out waiting for connection state change");
+ error = GRPC_ERROR_CREATE_FROM_STATIC_STRING(
+ "Timed out waiting for connection state change");
} else if (error == GRPC_ERROR_CANCELLED) {
error = GRPC_ERROR_NONE;
}