Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
30192281
Verified
Commit
30192281
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: tls
parent
a1e97030
No related branches found
No related tags found
No related merge requests found
Pipeline
#9283
failed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/connection.h
+1
-1
1 addition, 1 deletion
include/connection.h
src/connection.cpp
+3
-2
3 additions, 2 deletions
src/connection.cpp
with
4 additions
and
3 deletions
include/connection.h
+
1
−
1
View file @
30192281
...
...
@@ -119,7 +119,7 @@ public:
->
std
::
ostream
&
;
[[
nodiscard
]]
auto
getGeneralInfoService
()
const
->
GeneralInfoService
::
Stub
&
;
[[
nodiscard
]]
auto
getVersionInfo
()
const
->
const
VersionInfo
&
;
[[
nodiscard
]]
auto
getVersionInfo
()
const
->
VersionInfo
;
};
}
// namespace caosdb
#endif
This diff is collapsed.
Click to expand it.
src/connection.cpp
+
3
−
2
View file @
30192281
...
...
@@ -132,7 +132,7 @@ auto CaosDBConnection::getGeneralInfoService() const
}
[[
nodiscard
]]
auto
CaosDBConnection
::
getVersionInfo
()
const
->
const
VersionInfo
&
{
->
VersionInfo
{
const
GetVersionInfoRequest
request
;
GetVersionInfoResponse
response
;
grpc
::
ClientContext
context
;
...
...
@@ -142,7 +142,8 @@ auto CaosDBConnection::getGeneralInfoService() const
if
(
!
status
.
ok
())
{
throw
std
::
runtime_error
(
status
.
error_message
());
}
return
response
.
version_info
();
VersionInfo
result
(
response
.
version_info
());
return
result
;
}
}
// namespace caosdb
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment