Skip to content

Commit

Permalink
Moving some code
Browse files Browse the repository at this point in the history
  • Loading branch information
kellrott committed Sep 20, 2019
1 parent 62071da commit afece6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grids/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ type kvAddData struct {
}

func insertVertex(tx kvi.KVBulkWrite, keyMap *KeyMap, graphKey uint64, vertex *gripql.Vertex) error {
value, err := proto.Marshal(vertex)
vertexKey := keyMap.GetVertexKey(vertex.Gid)
key := VertexKey(graphKey, vertexKey)
if err != nil {
return err
}
vertexKey := keyMap.GetVertexKey(vertex.Gid)
key := VertexKey(graphKey, vertexKey)
value, err := proto.Marshal(vertex)
if err != nil {
return err
}
Expand Down

0 comments on commit afece6f

Please sign in to comment.