Skip to content

Commit

Permalink
fix(service): delete schemaless func (#2660)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying authored Mar 1, 2024
1 parent a5d56d5 commit ce30a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/service/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func (m *Manager) initFile(baseName string) error {
}
}
} else {
info.Interfaces[name].Functions = []string{name}
err := m.functionKV.Set(name, &functionContainer{
FuncName: name,
ServiceName: serviceName,
Expand Down
3 changes: 3 additions & 0 deletions internal/service/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func TestInitByFiles(t *testing.T) {
Schema: &schemaInfo{
Schemaless: true,
},
Functions: []string{
"tsschemaless",
},
},
},
}
Expand Down

0 comments on commit ce30a0a

Please sign in to comment.