Files
frp-panel/cmd/frpp/shared/test.go
T
2025-04-29 16:49:02 +00:00

21 lines
535 B
Go

package shared
// func serverThings() {
// time.Sleep(5 * time.Second)
// p := pool.New().WithMaxGoroutines(500)
// for i := 0; i < 100000; i++ {
// cnt := i
// p.Go(func() {
// resp := rpc.CallClient(context.Background(), "test", &pb.ServerMessage{
// Event: pb.Event_EVENT_DATA,
// Data: []byte(fmt.Sprint(cnt)),
// })
// if string(resp.Data) != fmt.Sprint(cnt) {
// logger.Logger(ctx).Panicf("resp: %+v", resp)
// }
// })
// }
// p.Wait()
// logger.Logger(c).Infof("finish server things")
// }