Skip to content

Commit

Permalink
Missing adaptation in ContainerStateMachine.
Browse files Browse the repository at this point in the history
  • Loading branch information
duongkame committed Apr 9, 2024
1 parent 4a2de06 commit 826340e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public ContainerStateMachine(RaftGroupId gid,
// cache with FIFO eviction, and if element not found, this needs
// to be obtained from disk for slow follower
stateMachineDataCache = new ResourceCache<>(
(index, data) -> ((ByteString)data).size(),
(index, data) -> data.get().size(),
pendingRequestsBytesLimit,
(p) -> {
if (p.wasEvicted()) {
Expand Down

0 comments on commit 826340e

Please sign in to comment.