Finish event response input

This commit is contained in:
2020-09-27 20:25:21 -06:00
parent d1c4c8ab1d
commit a64df092a5
2 changed files with 30 additions and 21 deletions

View File

@ -3,6 +3,7 @@ package back
import (
"context"
"errors"
"fmt"
"log"
"os"
@ -19,6 +20,8 @@ type Store struct {
}
func NewStore(filename string, genString GenString) (*Store, error) {
// TODO This stat needs to change, though I can't remember how, now that
// SQLite has been updated.
var needCreate bool
if _, err := os.Stat(filename); os.IsNotExist(err) {
needCreate = true
@ -275,6 +278,7 @@ type CreateEventResponseResult struct {
func (s *Store) CreateEventResponse(ctx context.Context, cmd CreateEventResponseCommand) (result CreateEventResponseResult, err error) {
const responseAlphaIDLength = 10
fmt.Printf("creating response: %+v\n", cmd)
conn := s.pool.Get(ctx)
defer s.pool.Put(conn)