mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 15:53:28 +03:00
Remove slow AppendUniq code, rolling through over a slice is in-efficient
Remove it and use map instead
This commit is contained in:
@@ -94,7 +94,7 @@ func (s *MySuite) TestEmptyBucket(c *C) {
|
||||
listObjects, err := donut.ListObjects("foo", "", "", "", 1)
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(len(listObjects.Objects), Equals, 0)
|
||||
c.Assert(listObjects.CommonPrefixes, IsNil)
|
||||
c.Assert(listObjects.CommonPrefixes, DeepEquals, []string{})
|
||||
c.Assert(listObjects.IsTruncated, Equals, false)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user