Skip to content

Commit

Permalink
fix: index name wrong (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
JieTrancender authored Aug 22, 2022
1 parent c4f3f7d commit f46266b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/nsqconsumer/outputs/elasticsearch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (c *Client) Run(msgChan <-chan *message.Message) {

func (c *Client) indexName(topic string) string {
now := time.Now()
return strftime.Format(fmt.Sprintf("%s-%%&.%%m.%%d", topic), now)
return strftime.Format(fmt.Sprintf("%s-%%Y.%%m.%%d", topic), now)
}

func (c *Client) Publish(msgList []*message.Message) {
Expand Down

0 comments on commit f46266b

Please sign in to comment.