Skip to content

Commit

Permalink
Fix the naming style, and unify the graph client module. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shylock-Hg authored Jul 21, 2021
1 parent 1aa5eb2 commit bd94949
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/gClient/mod.rs → src/graph_client/Connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/

pub mod Session;
pub mod Connection;
pub mod PoolConfig;
mod graph_client {};
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/

mod graph_client {};
2 changes: 2 additions & 0 deletions src/gClient/PoolConfig.rs → src/graph_client/PoolConfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/

mod graph_client {};
2 changes: 2 additions & 0 deletions src/gClient/Session.rs → src/graph_client/Session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/

mod graph_client {};
File renamed without changes.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/

pub mod gClient;
pub use gClient::{Connection, Session, PoolConfig};
pub mod graph_client;
2 changes: 1 addition & 1 deletion tests/test_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern crate nebula_rust;

#[cfg(test)]
mod test_session {
use nebula_rust::gClient::Session::Session;
use nebula_rust::graph_client;

#[test]
fn new_session() {
Expand Down

0 comments on commit bd94949

Please sign in to comment.