remove deprecated code, rename file

This commit is contained in:
Chris kerr 2024-07-19 22:08:27 -04:00
parent 346637d3ba
commit a02435ba5c
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ func HandleEventKind0(ctx context.Context, evt Event, collection *mongo.Collecti
return err
}
fmt.Println("Inserted event kind 1 into MongoDB:", evt.ID)
fmt.Println("Inserted event kind 0 into MongoDB:", evt.ID)
return nil
}

View File

@ -1,7 +1,7 @@
package utils
import (
"io/ioutil"
"os"
"gopkg.in/yaml.v2"
)
@ -21,7 +21,7 @@ type Config struct {
}
func LoadConfig(filename string) (*Config, error) {
data, err := ioutil.ReadFile(filename)
data, err := os.ReadFile(filename)
if err != nil {
return nil, err
}