Skip to content

Commit

Permalink
fix: last read
Browse files Browse the repository at this point in the history
  • Loading branch information
akakou committed May 14, 2024
1 parent 142042c commit 38ed715
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ttp/ct/sslmatect.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ func (ct *SSLMateCT) Setup(e *echo.Echo, ttp *core.TTP) error {
}

func (ct *SSLMateCT) Update(ttp *core.TTP) error {
last, err := readFile(LAST_FILE)
if err != nil {
return err
}

servers, err := ttp.DB.Client.TAServer.Query().All(*ttp.DB.Ctx)
if err != nil {
return err
Expand All @@ -80,7 +75,7 @@ func (ct *SSLMateCT) Update(ttp *core.TTP) error {
for _, server := range servers {
query := ct.BaseQuery
query.Domain = server.Domain
query.After = last
query.After = ct.Last

m := monitor.Monitor{
Query: &query,
Expand Down

0 comments on commit 38ed715

Please sign in to comment.