(svc blobcache.Service, volh blobcache.Handle)
| 37 | } |
| 38 | |
| 39 | func NewRemote(svc blobcache.Service, volh blobcache.Handle) *Remote { |
| 40 | return &Remote{ |
| 41 | svc: svc, |
| 42 | volh: volh, |
| 43 | |
| 44 | tmach: tries.NewMachine(nil, blobcache.HashAlgo_SHA2_256.KeyedHash), |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func (rem *Remote) putRefs(ctx context.Context, refs []GitRef) error { |
| 49 | tx, err := bcsdk.BeginTx(ctx, rem.svc, rem.volh, blobcache.TxParams{Modify: true}) |