Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 01fa638

Browse files
committed
Rename process to processUpdate
1 parent d316b89 commit 01fa638

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (c *Client) sendReport(r *cortex.Report, callback *tgbotapi.CallbackQuery)
3636
return err
3737
}
3838

39-
func (c *Client) process(update *tgbotapi.Update) error {
39+
func (c *Client) processUpdate(update *tgbotapi.Update) error {
4040
if update.CallbackQuery != nil {
4141
log.Printf(
4242
"username: %s, id: %d, text: %s",

run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (c *Client) Run() {
2626

2727
for update := range updates {
2828
go func(upd *tgbotapi.Update) {
29-
if err := c.process(upd); err != nil {
29+
if err := c.processUpdate(upd); err != nil {
3030
log.Println(err)
3131
}
3232
}(&update)

0 commit comments

Comments
 (0)