Skip to content

Commit df05bf8

Browse files
authored
remove anon namespace (#8236)
1 parent 03fe8d3 commit df05bf8

File tree

1 file changed

+22
-26
lines changed
  • ydb/core/grpc_services/base

1 file changed

+22
-26
lines changed

ydb/core/grpc_services/base/base.h

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -696,38 +696,34 @@ class TRefreshTokenImpl
696696
NYql::TIssueManager IssueManager_;
697697
};
698698

699-
namespace {
700-
701-
inline TMaybe<TString> ToMaybe(const TVector<TStringBuf>& vec) {
702-
if (vec.empty()) {
703-
return {};
704-
}
705-
return TString{vec[0]};
706-
}
707-
708-
inline const TMaybe<TString> ExtractYdbToken(const TVector<TStringBuf>& authHeadValues) {
709-
if (authHeadValues.empty()) {
710-
return {};
711-
}
712-
return TString{authHeadValues[0]};
699+
inline TMaybe<TString> ToMaybe(const TVector<TStringBuf>& vec) {
700+
if (vec.empty()) {
701+
return {};
713702
}
703+
return TString{vec[0]};
704+
}
714705

715-
inline const TMaybe<TString> ExtractDatabaseName(const TVector<TStringBuf>& dbHeaderValues) {
716-
if (dbHeaderValues.empty()) {
717-
return {};
718-
}
719-
return CGIUnescapeRet(dbHeaderValues[0]);
706+
inline const TMaybe<TString> ExtractYdbToken(const TVector<TStringBuf>& authHeadValues) {
707+
if (authHeadValues.empty()) {
708+
return {};
720709
}
710+
return TString{authHeadValues[0]};
711+
}
721712

722-
inline TString MakeAuthError(const TString& in, NYql::TIssueManager& issues) {
723-
TStringStream out;
724-
out << "unauthenticated"
725-
<< (in ? ", " : "") << in
726-
<< (issues.GetIssues() ? ": " : "");
727-
issues.GetIssues().PrintTo(out, true /* one line */);
728-
return out.Str();
713+
inline const TMaybe<TString> ExtractDatabaseName(const TVector<TStringBuf>& dbHeaderValues) {
714+
if (dbHeaderValues.empty()) {
715+
return {};
729716
}
717+
return CGIUnescapeRet(dbHeaderValues[0]);
718+
}
730719

720+
inline TString MakeAuthError(const TString& in, NYql::TIssueManager& issues) {
721+
TStringStream out;
722+
out << "unauthenticated"
723+
<< (in ? ", " : "") << in
724+
<< (issues.GetIssues() ? ": " : "");
725+
issues.GetIssues().PrintTo(out, true /* one line */);
726+
return out.Str();
731727
}
732728

733729
template <ui32 TRpcId, typename TReq, typename TResp, TRateLimiterMode RlMode = TRateLimiterMode::Off>

0 commit comments

Comments
 (0)