Skip to content

Commit 5e32ef8

Browse files
committed
fix compilation
1 parent d9b2b25 commit 5e32ef8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

config.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"encoding/base64"
55
"fmt"
6-
"os"
76

87
"github.com/akerl/go-lambda/s3"
98
)
@@ -22,10 +21,14 @@ type configFile struct {
2221

2322
func loadConfig() (*configFile, error) {
2423
c := configFile{}
25-
err := s3.GetConfigFromEnv(&c)
24+
cf, err := s3.GetConfigFromEnv(&c)
2625
if err != nil {
2726
return &c, err
2827
}
28+
cf.OnError = func(_ *s3.ConfigFile, err error) {
29+
fmt.Println(err)
30+
}
31+
cf.Autoreload(60)
2932

3033
if c.Lifetime == 0 {
3134
c.Lifetime = 86400

static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func init() {
607607
fi: FileInfo{
608608
name: "favicon.ico",
609609
size: 5558,
610-
modTime: time.Unix(0, 1523728129481329569),
610+
modTime: time.Unix(0, 1527090282022963545),
611611
isDir: false,
612612
},
613613
}, "/index.html.hbs": File{
@@ -753,7 +753,7 @@ func init() {
753753
fi: FileInfo{
754754
name: "index.html.hbs",
755755
size: 1637,
756-
modTime: time.Unix(0, 1525571524681850728),
756+
modTime: time.Unix(0, 1527090282023306924),
757757
isDir: false,
758758
},
759759
},

0 commit comments

Comments
 (0)