Remove commented out code
This commit is contained in:
parent
88f803692a
commit
fbeb439bc0
@ -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) {
|
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)
|
st, _ := NewStore("hat.db", 0600, nil)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user