Skip to content

Commit

Permalink
generate a router ID, see #5.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwigway committed Nov 23, 2014
1 parent c878b80 commit a09cbd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opentripplanner/Graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def __init__(self, graph):

isgs = InputStreamGraphSource.newFileGraphSource(None, File(path), LoadLevel.FULL)
self._graph = isgs.getGraph()


# workaround for not having any graph service
self._graph.routerId = hex(id(self))

else:
# We're wrapping a graph
self._graph = graph
Expand Down

0 comments on commit a09cbd7

Please sign in to comment.