func FromPersistenceQueueState(
state *persistencespb.QueueState,
readerScopes := make(map[int64][]Scope, len(state.ReaderStates))
for id, persistenceReaderState := range state.ReaderStates {
scopes := make([]Scope, 0, len(persistenceReaderState.Scopes))
for _, persistenceScope := range persistenceReaderState.Scopes {