Skip to content

Commit

Permalink
Successful graph binary traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Oct 19, 2024
1 parent 0cbcb97 commit 0aeb1fa
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 64 deletions.
12 changes: 6 additions & 6 deletions gremlin-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ impl GremlinClient {
conn: &mut r2d2::PooledConnection<GremlinConnectionManager>,
) -> GremlinResult<(Response, VecDeque<GValue>)> {
let result = conn.recv()?;
let response = self.options.deserializer.read_response(&result)?;
let response = self.options.deserializer.read_response(result)?;

match response.status.code {
200 | 206 => {
let results: VecDeque<GValue> = self
.options
.deserializer
.read(&response.result.data)?
.map(|v| v.into())
let results: VecDeque<GValue> = response
.result
.data
.clone()
.map(Into::into)
.unwrap_or_else(VecDeque::new);

Ok((response, results))
Expand Down
Loading

0 comments on commit 0aeb1fa

Please sign in to comment.