Skip to content

Commit fbeeecf

Browse files
committed
fix: write cmd impr
1 parent b122859 commit fbeeecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ func (c *Client) DeleteStream(chrono string, stream string) error {
4040
return nil
4141
}
4242

43-
func (c *Client) WriteEvent(chrono string, stream string, event string) error {
44-
command := "INSERT " + event + " INTO " + stream
43+
func (c *Client) WriteEvent(stream string, event string) error {
44+
command := "INSERT INTO " + stream + " VALUES " + event
4545
if response, err := c.conn.Execute(command); err != nil || response != "OK" {
4646
return fmt.Errorf("write failed: %v", err)
4747
}

0 commit comments

Comments
 (0)