Пример #1
0
func sessionFromRPC(session *pbg.Session) {
	if session == nil {
		return
	}
	if len(session.ShardSessions) == 0 {
		session.ShardSessions = nil
	}
}
Пример #2
0
func sessionFromRPC(session *vtgatepb.Session) interface{} {
	if session == nil {
		return nil
	}
	if len(session.ShardSessions) == 0 {
		session.ShardSessions = nil
	}
	return session
}