Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphg6 committed Aug 4, 2023
1 parent 3ca1fac commit fb03338
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
12 changes: 6 additions & 6 deletions services/rulles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit fb03338

Please sign in to comment.