Skip to content

Commit 83eb785

Browse files
Fixed example issue
1 parent 01803da commit 83eb785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/copydrive.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "kinetic/kinetic.h"
2727

28-
static const int kP2PBatchSize = 300;
28+
static const int kP2PBatchSize = 10;
2929
using kinetic::KineticConnectionFactory;
3030
using kinetic::Status;
3131
using kinetic::KineticRecord;
@@ -48,7 +48,7 @@ kinetic::P2PPushRequest prepare_request(const vector<kinetic::P2PPushOperation>&
4848

4949
if (currentDestination < destinations.size() - 1) {
5050
// Add the pipleline request onto this request's first operation
51-
request.operations[0].request = make_shared<::kinetic::P2PPushRequest>(
51+
request.operations[request.operations.size() - 1].request = make_shared<::kinetic::P2PPushRequest>(
5252
prepare_request(operations, destinations, currentDestination + 1));
5353
}
5454

0 commit comments

Comments
 (0)