fix separator (#481)

This commit is contained in:
gipsh 2023-06-29 18:35:31 -03:00 committed by GitHub
parent 9fa7541238
commit c77ce3bcb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -118,7 +118,14 @@ func convertToSymbols(m map[string]coingecko.NotionalUSD) map[domain.Symbol]noti
func (j *NotionalJob) renderKey(key string) string {
if j.cachePrefix != "" {
return fmt.Sprintf("%s-%s", j.cachePrefix, key)
return fmt.Sprintf("%s:%s", j.cachePrefix, key)
}
return key
}
func formatChannel(prefix string, channel string) string {
if prefix != "" {
return fmt.Sprintf("%s:%s", prefix, channel)
}
return channel
}