Skip to content

Commit

Permalink
fix: pass configured tables to the trace client (#1057)
Browse files Browse the repository at this point in the history
## Description

since its difficult to test the tracer irl, we missed this silly bug
:facepalm:
  • Loading branch information
evan-forbes authored Aug 9, 2023
1 parent 2f93fc8 commit 61fb662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/trace/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ func (c *Client) WritePoint(table string, fields map[string]interface{}) {
writeAPI.WritePoint(p)
}

func sliceToMap([]string) map[string]struct{} {
func sliceToMap(tables []string) map[string]struct{} {
m := make(map[string]struct{})
for _, s := range []string{} {
for _, s := range tables {
m[s] = struct{}{}
}
return m
Expand Down

0 comments on commit 61fb662

Please sign in to comment.