diff --git a/internal/haberdasherserver/server.go b/internal/haberdasherserver/server.go index 5a20220..49fcc47 100644 --- a/internal/haberdasherserver/server.go +++ b/internal/haberdasherserver/server.go @@ -85,21 +85,6 @@ func (s *Server) MakeHat(ctx context.Context, size *pb.Size) (hat *pb.Hat, err e } func (s *Server) ListHats(ctx context.Context, q *pb.HatQuery) (hats *pb.Hats, err error) { - /* - var hat *pb.Hat - - hats = &pb.Hats{} - - for i := 0; i < 10; i++ { - hat = &pb.Hat{ - Inches: int32(rand.Intn(12)), - Color: []string{"white", "black", "red", "blue"}[rand.Intn(4)], - Name: []string{"bowler", "baseball cap", "top hat", "derby"}[rand.Intn(3)], - } - hats.Hats = append(hats.Hats, hat) - } - */ - st, _ := NewStore("hat.db", 0600, nil) defer st.Close()