Finish event response input
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user