@@ -696,38 +696,34 @@ class TRefreshTokenImpl
696
696
NYql::TIssueManager IssueManager_;
697
697
};
698
698
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 {};
713
702
}
703
+ return TString{vec[0 ]};
704
+ }
714
705
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 {};
720
709
}
710
+ return TString{authHeadValues[0 ]};
711
+ }
721
712
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 {};
729
716
}
717
+ return CGIUnescapeRet (dbHeaderValues[0 ]);
718
+ }
730
719
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 ();
731
727
}
732
728
733
729
template <ui32 TRpcId, typename TReq, typename TResp, TRateLimiterMode RlMode = TRateLimiterMode::Off>
0 commit comments