Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAR2 committed Jul 26, 2023
1 parent 8ff70b1 commit 4ff63b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package watcher

import (
"errors"
"fmt"
"time"

"go.mongodb.org/mongo-driver/bson/primitive"
Expand Down Expand Up @@ -92,11 +93,13 @@ func (w *Watcher) SetLastTx(address string, tx string) {
}

func (w *Watcher) SetThreshold(threshold float64) {
fmt.Printf("SetThreshold %v\n", threshold)
w.Threshold = &threshold
w.UpdatedAt = time.Now()
}

func (w *Watcher) SetTokenPrice(price float64) {
fmt.Printf("SetTokenPrice %v\n", price)
w.TokenPrice = &price
w.UpdatedAt = time.Now()
}
Expand Down

0 comments on commit 4ff63b0

Please sign in to comment.