code: func (s *Store) WaitForApplied(timeout time.Duration) error {
  	if timeout == 0 {
  		return nil
  	}
  	s.logger.Printf("waiting for up to %s for application of initial logs", timeout)
  	if err := s.WaitForAppliedIndex(s.raft.LastIndex(), timeout); err != nil {
  		return ErrOpenTimeout
  	}
  	return nil
  }
docs: // WaitForApplied waits for all Raft log entries to to be applied to the
  // underlying database.