)// Unregister a user from the platformfuncUnregister()error{client,err:=connect()iferr!=nil{returnerr}// Stop the context if it takes too long for the platform to answerctx,cancel:=context.WithTimeout(context.Background(),net.DefaultTimeout)defercancel()response,err:=client.Unregister(ctx,&pb.Empty{})iferr!=nil{returnerrors.New(grpc.ErrorDesc(err))}ifresponse.Code!=pb.ErrorCode_SUCCESS{returnerrors.New(response.Message)}returnnil}