From fb033381bf12728078a6a4f17ff7a621db410c92 Mon Sep 17 00:00:00 2001 From: Raphael Pinto Date: Fri, 4 Aug 2023 15:42:45 -0300 Subject: [PATCH] fix: gofmt --- config/config.go | 2 +- services/rulles.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/config.go b/config/config.go index 4866233..40f0a61 100644 --- a/config/config.go +++ b/config/config.go @@ -45,7 +45,7 @@ type Config struct { AuthAPIKey string `mapstructure:"FEATWS_RULLER_API_KEY"` - KnowledgeBaseVersionTTL int64 `mapstructure:"KNOWLEDGE_BASE_VERSION_TTL"` + KnowledgeBaseVersionTTL int64 `mapstructure:"KNOWLEDGE_BASE_VERSION_TTL"` } var config = &Config{} diff --git a/services/rulles.go b/services/rulles.go index 0360558..e7475ae 100644 --- a/services/rulles.go +++ b/services/rulles.go @@ -130,17 +130,17 @@ var EvalService IEval = NewEval() // Property: // - knowledgeLibrary - `knowledgeLibrary` is a pointer to an `ast.KnowledgeLibrary` object. Itis a property of the `Eval` struct. type Eval struct { - knowledgeLibrary *ast.KnowledgeLibrary - knowledgeBaseCache map[knowledgeBaseInfo]*knowledgeBaseCache - versionTTL int64 + knowledgeLibrary *ast.KnowledgeLibrary + knowledgeBaseCache map[knowledgeBaseInfo]*knowledgeBaseCache + versionTTL int64 } // NewEval creates a new instance of the Eval struct with an empty knowledge library. func NewEval() Eval { return Eval{ - knowledgeLibrary: ast.NewKnowledgeLibrary(), - knowledgeBaseCache: map[knowledgeBaseInfo]*knowledgeBaseCache{}, - versionTTL: config.GetConfig().KnowledgeBaseVersionTTL, + knowledgeLibrary: ast.NewKnowledgeLibrary(), + knowledgeBaseCache: map[knowledgeBaseInfo]*knowledgeBaseCache{}, + versionTTL: config.GetConfig().KnowledgeBaseVersionTTL, } }