mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-21 09:58:18 +02:00
internal/redis/channel.go: Don't need to use fmt.Sprintf() anymore.
This commit is contained in:
parent
51af80d3aa
commit
caf7460875
1 changed files with 2 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
package redis
|
package redis
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -38,11 +37,11 @@ func (ac ActionChannel) String() string {
|
||||||
ch := Channel{"actions"}
|
ch := Channel{"actions"}
|
||||||
|
|
||||||
if len(ac.Contract) > 0 {
|
if len(ac.Contract) > 0 {
|
||||||
ch.Append(fmt.Sprintf("contract:%s", ac.Contract))
|
ch.Append("contract", ac.Contract)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(ac.Action) > 0 {
|
if len(ac.Action) > 0 {
|
||||||
ch.Append(fmt.Sprintf("action:%s", ac.Action))
|
ch.Append("action", ac.Action)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ch.String()
|
return ch.String()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue