mirror of
https://github.com/restic/restic.git
synced 2026-11-22 05:14:23 +00:00
Add Len() functions for IDSet and Map
This commit is contained in:
1 parent
4d1e7b9f24
commit
c631b5c738
2 files changed
+15
No files matched your search
@@ -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