inmem_snapshot.go
func (m *InmemSnapshotStore) List() ([]*SnapshotMeta, error) {
	m.RLock()
	defer m.RUnlock()

	if !m.hasSnapshot {
		return []*SnapshotMeta{}, nil
	}
	return []*SnapshotMeta{&m.latest.meta}, nil
}
func (m *InmemSnapshotStore) List() ([]*SnapshotMeta, error) {
	m.RLock()
	defer m.RUnlock()

	if !m.hasSnapshot {
		return []*SnapshotMeta{}, nil
	}
	return []*SnapshotMeta{&m.latest.meta}, nil
}
func ( m * InmemSnapshotStore ) List ( ) ( [ ] * SnapshotMeta , error ) { m . RLock ( ) defer m . RUnlock ( ) if ! m . hasSnapshot { return [ ] * SnapshotMeta { } , nil } return [ ] * SnapshotMeta { & m . latest . meta } , nil }
// List returns the latest snapshot taken
List returns the latest snapshot taken