Skip to content

Commit e7f2944

Browse files
committed
📦 updates HDK for v0.0.7
1 parent 07d8f90 commit e7f2944

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Taskfile.yml

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ tasks:
3333
- git commit -m "📦 updates HDK for ${TAG}"
3434
- git tag ${TAG}
3535
- git push origin main ${TAG}
36+
37+
remove-tag:
38+
env:
39+
TAG: "v0.0.7"
40+
cmds:
41+
- git tag -d ${TAG}

hostfunc.redis.go

+3
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ var redisGet = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
151151
var resultFromHost []byte
152152

153153
// start the host work
154+
InitRedisClient()
154155
result, err := getRedisClient().Get(ctx, string(bufferKey)).Result()
155156
if err != nil {
156157
resultFromHost = failure([]byte(err.Error()))
@@ -207,6 +208,7 @@ var redisDel = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
207208
var resultFromHost []byte
208209

209210
// start the host work
211+
InitRedisClient()
210212
_, err = getRedisClient().Del(ctx, string(bufferKey)).Result()
211213
if err != nil {
212214
resultFromHost = failure([]byte(err.Error()))
@@ -264,6 +266,7 @@ var redisKeys = api.GoModuleFunc(func(ctx context.Context, module api.Module, pa
264266
var keysMap = make(map[string][]string)
265267

266268
// call the redis KEYS command
269+
InitRedisClient()
267270
keys, err := getRedisClient().Keys(ctx, string(bufferFilter)).Result()
268271
if err != nil {
269272
resultFromHost = failure([]byte(err.Error()))

0 commit comments

Comments
 (0)