mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-09-26 19:31:18 +08:00
21 lines
533 B
Go
21 lines
533 B
Go
package main
|
|
|
|
// 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")
|
|
// }
|