thread safety + go1.13

This commit is contained in:
Florent Peterschmitt 2019-10-27 13:25:09 +01:00
parent c735f46ecb
commit adfd010a93
3 changed files with 44 additions and 6 deletions

View file

@ -15,10 +15,10 @@ func main() {
// I will ignore all errors for demonstration purposes
_ = ingester.BulkPush("movies", "general", 3, []sonic.IngestBulkRecord{
{"id:6ab56b4kk3", "Star wars"},
{"id:5hg67f8dg5", "Spider man"},
{"id:1m2n3b4vf6", "Batman"},
{"id:68d96h5h9d0", "This is another movie"},
{Object: "id:6ab56b4kk3", Text: "Star wars"},
{Object: "id:5hg67f8dg5", Text: "Spider man"},
{Object: "id:1m2n3b4vf6", Text: "Batman"},
{Object: "id:68d96h5h9d0", Text: "This is another movie"},
})
search, err := sonic.NewSearch("localhost", 1491, "SecretPassword")