Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
elega committed Mar 3, 2023
1 parent b708f5a commit a5b6082
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public static BlockLocation getCached(
*/
public static BlockLocation getCached(BlockLocation blockLocation) {
Preconditions.checkState(VALID_MEDIUM_TYPE_VALUES.contains(blockLocation.getTier()),
"TierAlias must be one of the following MEM, HDD and SSD but got %s",
"TierAlias must be one of {MEM, HDD and SSD} but got %s",
blockLocation.getTier());
Preconditions.checkState(VALID_MEDIUM_TYPE_VALUES.contains(blockLocation.getMediumType()),
"MediumType must be one of the following MEM, HDD and SSD but got %s",
"MediumType must be one of {MEM, HDD and SSD} but got %s",
blockLocation.getMediumType());
BLOCK_LOCATION_CACHE.add(blockLocation);
return BLOCK_LOCATION_CACHE.getFirstByField(OBJECT_INDEX, blockLocation);
Expand Down

0 comments on commit a5b6082

Please sign in to comment.