topfreegames / pitaya

Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK.
MIT License
2.35k stars 482 forks source link

Example code error(examples/demo/cluster_grpc/main.go) #368

Closed Tiper-In-Github closed 11 months ago

Tiper-In-Github commented 11 months ago

https://github.com/topfreegames/pitaya/blob/2829a35ad96b87812b2b3041c4b40fb3576fe1ce/examples/demo/cluster_grpc/main.go#L117C48-L117C48 In the 2.0.6 version, this example code cannot work properly: cannot use *config.NewDefaultMemoryGroupConfig() (variable of type "github.com/topfreegames/pitaya/v2/config".MemoryGroupConfig) as *"github.com/topfreegames/pitaya/config".Config value in argument to groups.NewMemoryGroupService Didn't update (pkg.go.dev) too long?

Tiper-In-Github commented 11 months ago

Well, I made a mistake, vscode automatically introduced the ‘group’ on V1 version