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

Commit

Permalink
Rename process to processUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed Dec 5, 2018
1 parent d316b89 commit 01fa638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c *Client) sendReport(r *cortex.Report, callback *tgbotapi.CallbackQuery)
return err
}

func (c *Client) process(update *tgbotapi.Update) error {
func (c *Client) processUpdate(update *tgbotapi.Update) error {
if update.CallbackQuery != nil {
log.Printf(
"username: %s, id: %d, text: %s",
Expand Down
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (c *Client) Run() {

for update := range updates {
go func(upd *tgbotapi.Update) {
if err := c.process(upd); err != nil {
if err := c.processUpdate(upd); err != nil {
log.Println(err)
}
}(&update)
Expand Down

0 comments on commit 01fa638

Please sign in to comment.