func (u *Upload) SendCreateUpload(links lists.BlobMap) (missing []proto.ID, err error) { cli, err := u.Transport.tPool.Take() if err != nil { return } defer cli.Release() mans := proto.ManifestSlice(links.GetManifestSlice()) tSlice, err := mans.MarshalThrift() if err != nil { return } res1, err := cli.CreateUpload((*u.UUID)[:], tSlice, int64(u.ttl)) if err != nil { return } var r2 proto.IDSlice err = (&r2).UnmarshalThrift(res1) missing = r2 return }