~zacbrown/api.zacbrown.org-app

c62c239196318e14e6d4f2dfa0896dbda2e5f0a7 — Zac Brown 5 months ago cc8ca9b master
Expected filename and S3 object key should match for the dictionary file.
1 files changed, 1 insertions(+), 1 deletions(-)

M dictionary.go
M dictionary.go => dictionary.go +1 -1
@@ 53,7 53,7 @@ func NewDictionaryHandler() *DictionaryHandler {
func (d *DictionaryHandler) loadDictionary() {
	const dictionaryFileName string = "dictionary.json.bz2"
	const dictionaryFileS3Bucket string = "pub-static-files"
	const dictionaryFileS3ObjectKey string = "dictionary.json.bz2"
	const dictionaryFileS3ObjectKey string = dictionaryFileName

	if _, err := os.Stat(dictionaryFileName); os.IsNotExist(err) {
		log.Printf("Didn't find %s file locally, fetching from S3.\n", dictionaryFileName)