hashBalanceID returns a consistent hash value for a string balance ID. Parameters: - balanceID string: The balance ID to hash. Returns: - int: The hash value of the balance ID.
(balanceID string)
| 259 | // Returns: |
| 260 | // - int: The hash value of the balance ID. |
| 261 | func hashBalanceID(balanceID string) int { |
| 262 | hasher := fnv.New32a() |
| 263 | _, _ = hasher.Write([]byte(balanceID)) |
| 264 | return int(hasher.Sum32()) |
| 265 | } |
| 266 | |
| 267 | // GetTransactionFromQueue retrieves a transaction from the queue by its ID. |
| 268 | // |
no outgoing calls