diff --git a/gremlin-cli/src/actions/connect.rs b/gremlin-cli/src/actions/connect.rs index d37cb05b..e9c13284 100644 --- a/gremlin-cli/src/actions/connect.rs +++ b/gremlin-cli/src/actions/connect.rs @@ -1,6 +1,6 @@ use crate::{actions::Action, command::Command, context::GremlinContext}; use futures::FutureExt; -use gremlin_client::{aio::GremlinClient, ConnectionOptions, GraphSON, TlsOptions}; +use gremlin_client::{aio::GremlinClient, ConnectionOptions, Protocol, TlsOptions}; use std::str::FromStr; use structopt::StructOpt; @@ -30,11 +30,11 @@ impl FromStr for Serializer { } } -impl From for GraphSON { +impl From for Protocol { fn from(serializer: Serializer) -> Self { match serializer { - Serializer::GraphSONV2 => GraphSON::V2, - Serializer::GraphSONV3 => GraphSON::V3, + Serializer::GraphSONV2 => Protocol::GraphSONV2, + Serializer::GraphSONV3 => Protocol::GraphSONV3, } } }