Skip to content

Commit

Permalink
fix fucking format
Browse files Browse the repository at this point in the history
Signed-off-by: yanz <[email protected]>
  • Loading branch information
dirtysalt committed Nov 25, 2024
1 parent 09eb386 commit 931de3d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,7 @@ public CachingIcebergCatalog(String catalogName, IcebergCatalog delegate, Iceber
enableCache ? DEFAULT_CACHE_NUM : NEVER_CACHE).build();
this.partitionCache = newCacheBuilder(icebergProperties.getIcebergMetaCacheTtlSec(),
enableCache ? DEFAULT_CACHE_NUM : NEVER_CACHE).build(
new CacheLoader<>() {
@Override
public Map<String, Partition> load(IcebergTableName key) throws Exception {
// use default executor service.
return delegate.getPartitions(key.dbName, key.tableName, key.snapshotId, null);
}
});
CacheLoader.from(key -> delegate.getPartitions(key.dbName, key.tableName, key.snapshotId, null)));
this.dataFileCache = enableCache ?
newCacheBuilder(
icebergProperties.getIcebergMetaCacheTtlSec(), icebergProperties.getIcebergManifestCacheMaxNum()).build()
Expand Down

0 comments on commit 931de3d

Please sign in to comment.