Skip to content

Commit

Permalink
Minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryn5 committed Oct 7, 2023
1 parent 1fe2a48 commit 5d199ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gremlin-dotnet/example/Example.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
Expand Down Expand Up @@ -80,6 +80,7 @@ static void BasicGremlinExample()
// Retrieve the data from the "marko" vertex
var marko = g.V().Has("person","name","marko").Values<string>("name").Next();
Console.WriteLine("name: " + marko);

// Find the "marko" vertex and then traverse to the people he "knows" and return their data
var peopleMarkoKnows = g.V().Has("person","name","marko").Out("knows").Values<string>("name").ToList();
foreach (var person in peopleMarkoKnows)
Expand Down
1 change: 1 addition & 0 deletions gremlin-go/example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func connectionExample() {
fmt.Println(err)
return
}

// Cleanup
defer driverRemoteConnection.Close()

Expand Down
2 changes: 2 additions & 0 deletions gremlin-python/src/main/python/example/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def connection_example():
enable_user_agent_on_connect=True
)
g = traversal().with_remote(rc)

# cleanup
rc.close()


Expand Down

0 comments on commit 5d199ce

Please sign in to comment.