()
| 525 | } |
| 526 | |
| 527 | func init() { |
| 528 | internal.RegisterErrorCodeMap("taskqueue", pb.TaskQueueServiceError_ErrorCode_name) |
| 529 | |
| 530 | // Datastore error codes are shifted by DATASTORE_ERROR when presented through taskqueue. |
| 531 | dsCode := int32(pb.TaskQueueServiceError_DATASTORE_ERROR) + int32(dspb.Error_TIMEOUT) |
| 532 | internal.RegisterTimeoutErrorCode("taskqueue", dsCode) |
| 533 | |
| 534 | // Transaction registration. |
| 535 | internal.RegisterTransactionSetter(setTransaction) |
| 536 | internal.RegisterTransactionSetter(func(x *pb.TaskQueueBulkAddRequest, t *dspb.Transaction) { |
| 537 | for _, req := range x.AddRequest { |
| 538 | setTransaction(req, t) |
| 539 | } |
| 540 | }) |
| 541 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…