1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-08-27 20:28:14 +02:00

typo fixes and added comments

This commit is contained in:
Henrik Hautakoski 2024-08-26 13:08:58 +02:00
parent 48ca5e4f92
commit c769b6a700
7 changed files with 11 additions and 9 deletions

View file

@ -19,7 +19,7 @@ const (
//
// Contains a prefix and chain_id to guard keys against collision.
// Prefix should be sufficient to not collide with other application using the same redis database.
// chain_id should be ok to not let multiple reader with different chains to write to the same channels.
// chain_id should be fine to not let multiple reader with different chains to write to the same channels.
type Namespace struct {
Prefix string

View file

@ -48,7 +48,7 @@ func NewSubscriber(ctx context.Context, client *redis.Client, ns Namespace, opti
return sub
}
// worker reads messages from redis pubsub and forwards them to
// worker reads messages from Redis pubsub and forwards them to
// correct channels.
func (s *Subscriber) worker() {
for msg := range s.sub.Channel() {