File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments