Skip to content

Commit 27a7ed7

Browse files
committed
refactor: 将 StorageConfig.Value() 接收者改为值类型
1 parent 54570da commit 27a7ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/types/knowledgebase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type StorageConfig struct {
8484
Provider string `yaml:"provider" json:"provider"`
8585
}
8686

87-
func (c *StorageConfig) Value() (driver.Value, error) {
87+
func (c StorageConfig) Value() (driver.Value, error) {
8888
return json.Marshal(c)
8989
}
9090

0 commit comments

Comments
 (0)