From 37199872b0ad49335c1aa9a59896c41fe89b9c3d Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Fri, 25 Mar 2022 14:31:03 +0700 Subject: [PATCH] logs-test --- sync_to_service.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sync_to_service.go b/sync_to_service.go index e243281..c4cf49f 100644 --- a/sync_to_service.go +++ b/sync_to_service.go @@ -34,12 +34,17 @@ func (s SyncToService) syncData() { // handleSyncDataToServiceAppier ... func handleSyncDataToServiceAppier(pattern string, typeData string) { + fmt.Println("keyProductPattern", pattern) + for { keys, values := redisdb.GetWithPrefixPattern(pattern, limitGetKeyRedis) if len(keys) == 0 { return } + fmt.Println("keys:", keys) + fmt.Println("values", values) + payload := toBytes(values) // Convert data switch typeData {