Skip to content

Commit

Permalink
fix: wrap "calls" metadata in string schema representation
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Aug 31, 2023
1 parent 29241c9 commit cf6f9d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ deploy/
reflex.conf
/logs/
node_modules
*.tsbuildinfo
10 changes: 9 additions & 1 deletion backend/schema/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,19 @@ var _ Metadata = (*MetadataCalls)(nil)
func (m *MetadataCalls) String() string {
out := &strings.Builder{}
fmt.Fprint(out, "calls ")
w := 6
for i, call := range m.Calls {
if i > 0 {
fmt.Fprint(out, ", ")
w += 2
}
fmt.Fprint(out, call)
str := call.String()
if w+len(str) > 70 {
w = 6
fmt.Fprint(out, "\n ")
}
w += len(str)
fmt.Fprint(out, str)
}
fmt.Fprintln(out)
return out.String()
Expand Down
1 change: 0 additions & 1 deletion console/client/tsconfig.tsbuildinfo

This file was deleted.

0 comments on commit cf6f9d5

Please sign in to comment.