package store // SetAfterClaim installs a hook that runs between the claiming statement and // the replay lookup of AppendOnce; it returns a function restoring the old one. func SetAfterClaim(hook func()) (restore func()) { old := afterClaim afterClaim = hook return func() { afterClaim = old } }