Function
newDynamoProcess
(db *dynamodb.DynamoDB, region string, maxbackoff time.Duration)
Source from the content-addressed store, hash-verified
| 97 | } |
| 98 | |
| 99 | func newDynamoProcess(db *dynamodb.DynamoDB, region string, maxbackoff time.Duration) *dynamoProcess { |
| 100 | dp := &dynamoProcess{ |
| 101 | db: db, |
| 102 | in: make(chan *dynamodb.BatchWriteItemInput, 1), |
| 103 | out: make(chan bool, 1), |
| 104 | region: region, |
| 105 | maxbackoff: maxbackoff, |
| 106 | } |
| 107 | go dp.run() |
| 108 | return dp |
| 109 | } |
| 110 | |
| 111 | func (dp *dynamoProcess) doRequest(inp *dynamodb.BatchWriteItemInput) error { |
| 112 | var err error |
Tested by
no test coverage detected