mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* Logs should support specifying region when using S3-compatible object store * Use aws-sdk-go client for s3 backed logstore * fixes vendor with aws-sdk-go dependencies
23 lines
360 B
Go
23 lines
360 B
Go
package kinesis
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/aws/aws-sdk-go/aws/request"
|
|
)
|
|
|
|
var readDuration = 5 * time.Second
|
|
|
|
func init() {
|
|
ops := []string{
|
|
opGetRecords,
|
|
}
|
|
initRequest = func(r *request.Request) {
|
|
for _, operation := range ops {
|
|
if r.Operation.Name == operation {
|
|
r.ApplyOptions(request.WithResponseReadTimeout(readDuration))
|
|
}
|
|
}
|
|
}
|
|
}
|