Fix get_pools being skipped #108

Merged
Alfred-mk merged 4 commits from pool-debug into master 2025-11-05 12:12:33 +01:00
2 changed files with 0 additions and 4 deletions
Showing only changes of commit 9f8cf95e0f - Show all commits

View File

@ -65,7 +65,6 @@ func (h *MenuHandlers) GetPools(ctx context.Context, sym string, input []byte) (
// Write data entries
for key, value := range dataMap {
fmt.Println("writing: ", value, "into: ", key)
if err := userStore.WriteEntry(ctx, sessionId, key, []byte(value)); err != nil {
logg.ErrorCtxf(ctx, "Failed to write data entry for sessionId: %s", sessionId, "key", key, "error", err)
continue

View File

@ -44,10 +44,7 @@ func GetPoolData(ctx context.Context, store DataStore, sessionId string, input s
}
data := make(map[storedb.DataTyp]string)
fmt.Println("the keys:", keys)
for _, key := range keys {
fmt.Println("current key:", key)
value, err := store.ReadEntry(ctx, sessionId, key)
if err != nil {
return nil, fmt.Errorf("failed to get data key %x: %v", key, err)