mirror of
https://github.com/restic/restic.git
synced 2025-12-04 00:21:46 +00:00
Add Len() functions for IDSet and Map
This commit is contained in:
@@ -66,3 +66,10 @@ func (s *IDSet) Find(id ID) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *IDSet) Len() int {
|
||||
s.m.Lock()
|
||||
defer s.m.Unlock()
|
||||
|
||||
return len(s.list)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user