(ev Event, destinationID string)
| 384 | } |
| 385 | |
| 386 | func fingerprint(ev Event, destinationID string) string { |
| 387 | bucket := time.Now().Unix() / 120 |
| 388 | raw := fmt.Sprintf("%s|%s|%s|%d", ev.Type, ev.ReferenceID, destinationID, bucket) |
| 389 | h := sha256.Sum256([]byte(raw)) |
| 390 | return hex.EncodeToString(h[:]) |
| 391 | } |
| 392 | |
| 393 | func tenantRedisKey(tenantHost, suffix string) string { |
| 394 | if tenantHost != "" { |
no outgoing calls
no test coverage detected