INNER CODE UNIT · Go

func

pace/bricks · tools/testserver/main.go:54

func (*TestService) GetTest(ctx context.Context, w simple.GetTestResponseWriter, r *simple.GetTestRequest) error {
	log.Debug("Request in flight, this will wait 5 min....")
	for t := 0; t < 360; t++ {
		select {
		case <-ctx.Done():
			return ctx.Err()
		default:
			time.Sleep(time.Second)
		}
	}
	return nil
}

func main() {
	db := postgres.NewDB(context.Background())
	rdb := redis.Client()
	cdb, err := couchdb.DefaultDatabase()
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…