copy and paste does not work

pull/1011/head
Yang Gao 10 years ago
parent 94e296c357
commit 2fbbb9bd95
  1. 3
      src/cpp/client/secure_credentials.cc

@ -100,7 +100,8 @@ std::unique_ptr<Credentials> ServiceAccountCredentials(
std::chrono::seconds token_lifetime) { std::chrono::seconds token_lifetime) {
if (token_lifetime.count() <= 0) { if (token_lifetime.count() <= 0) {
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"Trying to create JWTCredentials with non-positive lifetime"); "Trying to create ServiceAccountCredentials "
"with non-positive lifetime");
return WrapCredentials(nullptr); return WrapCredentials(nullptr);
} }
gpr_timespec lifetime = gpr_time_from_seconds(token_lifetime.count()); gpr_timespec lifetime = gpr_time_from_seconds(token_lifetime.count());

Loading…
Cancel
Save