MCPcopy Index your code
hub / github.com/plexdrive/plexdrive / BatchUpdateObjects

Method BatchUpdateObjects

drive/cache.go:283–299  ·  view source on GitHub ↗
(objects []*APIObject)

Source from the content-addressed store, hash-verified

281}
282
283func (c *Cache) BatchUpdateObjects(objects []*APIObject) error {
284 err := c.db.Update(func(tx *bolt.Tx) error {
285 for _, object := range objects {
286 if err := boltUpdateObject(tx, object); nil != err {
287 return err
288 }
289 }
290 return nil
291 })
292
293 if nil != err {
294 Log.Debugf("%v", err)
295 return fmt.Errorf("Could not update/save objects: %v", err)
296 }
297
298 return nil
299}
300
301// StoreStartPageToken stores the page token for changes
302func (c *Cache) StoreStartPageToken(token string) error {

Callers 1

checkChangesMethod · 0.80

Calls 1

boltUpdateObjectFunction · 0.85

Tested by

no test coverage detected