Skip to content

Commit

Permalink
Remove redundant asyncReloading wrapper in function listing cache
Browse files Browse the repository at this point in the history
The cache has no `refreshAfterWrite`, so `asyncReloading` does not
change anything.
  • Loading branch information
findepi committed Jan 21, 2022
1 parent 10c4756 commit 6619807
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public TableNameCompleter(QueryRunner queryRunner)
.build(asyncReloading(CacheLoader.from(this::listTables), executor));

functionCache = CacheBuilder.newBuilder()
.build(asyncReloading(CacheLoader.from(this::listFunctions), executor));
.build(CacheLoader.from(this::listFunctions));
}

private List<String> listTables(String schemaName)
Expand Down

0 comments on commit 6619807

Please sign in to comment.