Skip to content

Commit 2ee72b5

Browse files
Fixed variable name (temporary)
1 parent 656e3a3 commit 2ee72b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/session/redis.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (m *Manager) saveTransactionResultsRedis(username string, txResult types.Tr
148148
return m.redis.RPush(ctx, key, resultBytes).Err()
149149
}
150150

151-
func (m *Manager) getTransactionResultsRedis(username string, limit int) ([]types.TransactionResult, error) {
151+
func (m *Manager) getTransactionResultsRedis(username string, limit int) ([]types.Transaction, error) {
152152
ctx := context.Background()
153153

154154
/* thread safety for the manager */
@@ -178,9 +178,9 @@ func (m *Manager) getTransactionResultsRedis(username string, limit int) ([]type
178178
}
179179

180180
/* converts each JSON string back into a TransactionResult */
181-
results := make([]types.TransactionResult, 0, len(values))
181+
results := make([]types.Transaction, 0, len(values))
182182
for _, val := range values {
183-
var result types.TransactionResult
183+
var result types.Transaction
184184
if err := json.Unmarshal([]byte(val), &result); err != nil {
185185
/* skip malformed results */
186186
continue

0 commit comments

Comments
 (0)