Skip to content

Commit

Permalink
feat: textJanitor release, fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Vidmar committed Mar 9, 2023
1 parent 36514ac commit 76574b2
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ A Contentful API code generator for Go. Features:
- Simplifies management/resolution of references
- Adds several utility functions for RichText from/to HTML conversion, assets handling and more

Full documentation available at [foomo.org](https://www.foomo.org/docs/backend/gocontentful/introduction)
Full documentation available at [foomo.org](https://www.foomo.org/docs/projects/cms/gocontentful/introduction)
6 changes: 3 additions & 3 deletions erm/templates/contentful_vo_lib.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ func (cc *ContentfulClient) UpdateCache(ctx context.Context, contentTypes []stri
return cc.syncCache(ctxAtWork, contentTypes)
}
cc.cacheWorkerOnce.Do(func() {
go cc.cacheWorker(ctxAtWork, contentTypes, cacheAssets)
go cc.cacheWorker(ctx, contentTypes, cacheAssets)
})
if len(cc.cacheQueue) == 0 {
if cc.logFn != nil && cc.logLevel <= LogInfo {
Expand Down Expand Up @@ -695,9 +695,9 @@ func (cc *ContentfulClient) syncCache(ctx context.Context, contentTypes []string
}
updateCacheForContentTypeAndEntity(ctx, cc, entry.Sys.ContentType.Sys.ID, entry.Sys.ID, entry, false)
case sysTypeDeletedEntry:
cc.Cache.idContentTypeMapGcLock.RLock()
cc.cacheMutex.idContentTypeMapGcLock.RLock()
contentType := cc.Cache.idContentTypeMap[entry.Sys.ID]
cc.Cache.idContentTypeMapGcLock.RUnlock()
cc.cacheMutex.idContentTypeMapGcLock.RUnlock()
updateCacheForContentTypeAndEntity(ctx, cc, contentType, entry.Sys.ID, entry, true)
default:
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/foomo/gocontentful/erm"
)

var VERSION = "v1.0.15"
var VERSION = "v1.0.16"

type contentfulRc struct {
ManagementToken string `json:"managementToken"`
Expand Down
2 changes: 1 addition & 1 deletion test/testapi/gocontentfulvo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/testapi/gocontentfulvobase.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions test/testapi/gocontentfulvolib.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/testapi/gocontentfulvolibbrand.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/testapi/gocontentfulvolibcategory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/testapi/gocontentfulvolibproduct.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76574b2

Please sign in to comment.