remove hard coded cacheTTL for resouceManager
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/3f00d4e6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/3f00d4e6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/3f00d4e6 Branch: refs/heads/master Commit: 3f00d4e6bc2ec05f62d988d6d5ff803c5eb50e4c Parents: 2b1c88a Author: daewon <dae...@apache.org> Authored: Wed May 30 16:48:32 2018 +0900 Committer: daewon <dae...@apache.org> Committed: Wed May 30 16:49:09 2018 +0900 ---------------------------------------------------------------------- s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/3f00d4e6/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala index 2ff2eb3..d41bc24 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala @@ -284,12 +284,12 @@ class S2Graph(_config: Config)(implicit val ec: ExecutionContext) extends S2Grap * right implementation(S2GRAPH-213). * */ override def getVertexFetcher(column: ServiceColumn): VertexFetcher = { - resourceManager.getOrElseUpdateVertexFetcher(column, Option(60 * 60 * 24)) + resourceManager.getOrElseUpdateVertexFetcher(column) .getOrElse(defaultStorage.vertexFetcher) } override def getEdgeFetcher(label: Label): EdgeFetcher = { - resourceManager.getOrElseUpdateEdgeFetcher(label, Option(60 * 60 * 24)) + resourceManager.getOrElseUpdateEdgeFetcher(label) .getOrElse(defaultStorage.edgeFetcher) }