Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Nov 9, 2023
1 parent 3295f88 commit e34d71c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orch/internal/handlers/hc_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func handle_hc_instance_req(r *http.Request, cfg HCcfg) error {
return fmt.Errorf("failed @ hc_collect: %v", err)
}
case "hc_restore":
err = hc_restore(cfg.Subdomain)
err = hc_restore(cfg.HubId)
if err != nil {
return fmt.Errorf("failed @ hc_restore: %v", err)
}
Expand Down
3 changes: 1 addition & 2 deletions orch/internal/handlers/turkeyReturnCenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"main/internal"
"net/http"
"os"
Expand Down Expand Up @@ -46,7 +45,7 @@ var TurkeyReturnCenter = http.HandlerFunc(func(w http.ResponseWriter, r *http.Re

switch r.Method {
case "GET":
bytes, err := ioutil.ReadFile("./_statics/turkeyreturncenter.html")
bytes, err := os.ReadFile("./_statics/turkeyreturncenter.html")
if err != nil {
internal.Logger.Sugar().Errorf("%v", err)
}
Expand Down

0 comments on commit e34d71c

Please sign in to comment.