Skip to content

Commit

Permalink
Upgraded services to v0.1.0 and better error handling for localfetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dave committed Jan 4, 2019
1 parent 88ebf00 commit 838668d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -9,7 +9,7 @@ require (
github.com/dave/jennifer v1.2.0
github.com/dave/patsy v0.0.0-20170606133301-2245ba804d71
github.com/dave/play v0.0.0-20180927083150-0d1bd3827742
github.com/dave/services v0.0.1
github.com/dave/services v0.1.0
github.com/dave/stablegob v1.0.0
github.com/dustin/go-humanize v1.0.0
github.com/emirpasic/gods v1.12.0 // indirect
Expand Down
1 change: 1 addition & 0 deletions go.sum
Expand Up @@ -28,6 +28,7 @@ github.com/dave/services v0.0.0-20181017184551-42464ea8a9dc h1:ts6yVZqiz9Fqcp4oI
github.com/dave/services v0.0.0-20181017184551-42464ea8a9dc/go.mod h1:H/RSVtLEC67SK6QAevsdWJgKMcE0fRhJmgXxEqBA/IA=
github.com/dave/services v0.0.1 h1:XrOlJiLk99OxlO+sTjhUYn/nEaBfIGrdfI/+b6JwmMM=
github.com/dave/services v0.0.1/go.mod h1:H/RSVtLEC67SK6QAevsdWJgKMcE0fRhJmgXxEqBA/IA=
github.com/dave/services v0.1.0/go.mod h1:H/RSVtLEC67SK6QAevsdWJgKMcE0fRhJmgXxEqBA/IA=
github.com/dave/stablegob v1.0.0 h1:m5g3f1z2DnBxHH/DzWVmrlI7nGrZ/kuPe4RyFT2G5nE=
github.com/dave/stablegob v1.0.0/go.mod h1:YSkxg4P8gwXEcrk/LN4tj9379lOKCKgj+j5TNV7jRG8=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
5 changes: 4 additions & 1 deletion server/server.go
Expand Up @@ -56,7 +56,10 @@ func New(shutdown chan struct{}) *Handler {
if config.LOCAL {
fileserver = localfileserver.New(config.LocalFileserverTempDir, config.Static, config.Host, config.Bucket)
database = localdatabase.New(config.LocalFileserverTempDir)
fetcherResolver := localfetcher.New()
fetcherResolver, err := localfetcher.New()
if err != nil {
panic(err)
}
c = cache.New(
database,
fetcherResolver,
Expand Down

0 comments on commit 838668d

Please sign in to comment.