Update function name to represent functionality
This commit is contained in:
parent
855af23684
commit
7fccc9da9f
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ import (
|
||||||
// curl https://s3.amazonaws.com/kinesis.test/users.txt -o /tmp/users.txt
|
// curl https://s3.amazonaws.com/kinesis.test/users.txt -o /tmp/users.txt
|
||||||
var stream = flag.String("s", "", "Stream name")
|
var stream = flag.String("s", "", "Stream name")
|
||||||
|
|
||||||
func putToS3(svc *kinesis.Kinesis, data string, partitionKey string) {
|
func putToKinesis(svc *kinesis.Kinesis, data string, partitionKey string) {
|
||||||
params := &kinesis.PutRecordInput{
|
params := &kinesis.PutRecordInput{
|
||||||
Data: []byte(data),
|
Data: []byte(data),
|
||||||
PartitionKey: aws.String(partitionKey),
|
PartitionKey: aws.String(partitionKey),
|
||||||
|
|
@ -45,7 +45,7 @@ func main() {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
for data := range jobCh {
|
for data := range jobCh {
|
||||||
putToS3(svc, data, string(i))
|
putToKinesis(svc, data, string(i))
|
||||||
}
|
}
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue