add context to keyvaluemodule get/set

This commit is contained in:
Joel Wetzell
2026-05-27 18:30:23 -05:00
parent 3adbae8068
commit 52ca801fbd
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ func (m *TestKVModule) Id() string {
return m.id
}
func (m *TestKVModule) Get(key string) (any, error) {
func (m *TestKVModule) Get(ctx context.Context, key string) (any, error) {
if m.kvData == nil {
return nil, nil
}
@@ -100,7 +100,7 @@ func (m *TestKVModule) Get(key string) (any, error) {
return value, nil
}
func (m *TestKVModule) Set(key string, value any) error {
func (m *TestKVModule) Set(ctx context.Context, key string, value any) error {
if m.kvData == nil {
m.kvData = make(map[string]any)
}