{"action":"created","issue":{"url":"https://api.github.com/repos/tarantool/go-tarantool/issues/60","repository_url":"https://api.github.com/repos/tarantool/go-tarantool","labels_url":"https://api.github.com/repos/tarantool/go-tarantool/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/tarantool/go-tarantool/issues/60/comments","events_url":"https://api.github.com/repos/tarantool/go-tarantool/issues/60/events","html_url":"https://github.com/tarantool/go-tarantool/issues/60","id":306522736,"number":60,"title":"Field offset has type uint32","user":{"login":"artjoma","id":15686738,"avatar_url":"https://avatars0.githubusercontent.com/u/15686738?v=4","gravatar_id":"","url":"https://api.github.com/users/artjoma","html_url":"https://github.com/artjoma","followers_url":"https://api.github.com/users/artjoma/followers","following_url":"https://api.github.com/users/artjoma/following{/other_user}","gists_url":"https://api.github.com/users/artjoma/gists{/gist_id}","starred_url":"https://api.github.com/users/artjoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artjoma/subscriptions","organizations_url":"https://api.github.com/users/artjoma/orgs","repos_url":"https://api.github.com/users/artjoma/repos","events_url":"https://api.github.com/users/artjoma/events{/privacy}","received_events_url":"https://api.github.com/users/artjoma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-19T15:55:28Z","updated_at":"2018-03-19T15:57:59Z","closed_at":null,"author_association":"NONE","body":"Почему в Select() поле offet uint32 ?\r\n\r\n```\r\nfunc (conn *Connection) Select(space, index interface{}, offset, limit, iterator uint32, key interface{}) (resp *Response, err error) {\r\n\treturn conn.SelectAsync(space, index, offset, limit, iterator, key).Get()\r\n}\r\n```\r\nХотя оно потом сериализируется в uint64:\r\n```\r\nfunc (req *Future) fillIterator(enc *msgpack.Encoder, offset, limit, iterator uint32) {\r\n\tenc.EncodeUint64(KeyIterator)\r\n\tenc.EncodeUint64(uint64(iterator))\r\n\tenc.EncodeUint64(KeyOffset)\r\n\tenc.EncodeUint64(uint64(offset))\r\n\tenc.EncodeUint64(KeyLimit)\r\n\tenc.EncodeUint64(uint64(limit))\r\n}\r\n```\r\nМожете прояснить."},"comment":{"url":"https://api.github.com/repos/tarantool/go-tarantool/issues/comments/374263996","html_url":"https://github.com/tarantool/go-tarantool/issues/60#issuecomment-374263996","issue_url":"https://api.github.com/repos/tarantool/go-tarantool/issues/60","id":374263996,"user":{"login":"funny-falcon","id":249427,"avatar_url":"https://avatars1.githubusercontent.com/u/249427?v=4","gravatar_id":"","url":"https://api.github.com/users/funny-falcon","html_url":"https://github.com/funny-falcon","followers_url":"https://api.github.com/users/funny-falcon/followers","following_url":"https://api.github.com/users/funny-falcon/following{/other_user}","gists_url":"https://api.github.com/users/funny-falcon/gists{/gist_id}","starred_url":"https://api.github.com/users/funny-falcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funny-falcon/subscriptions","organizations_url":"https://api.github.com/users/funny-falcon/orgs","repos_url":"https://api.github.com/users/funny-falcon/repos","events_url":"https://api.github.com/users/funny-falcon/events{/privacy}","received_events_url":"https://api.github.com/users/funny-falcon/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T15:57:59Z","updated_at":"2018-03-19T15:57:59Z","author_association":"COLLABORATOR","body":"Потому что EncodeUint64 требует uint64. А все остальные методы кодирования unsigned integer всё равно фолбэчатся до EncodeUint64, так что просто прослойка меньше.\r\nА в Select оно uint32 потому что вы точно не хотите пропускать больше 4х миллиардов записей. Если же вы хотите, то это не к нам, для этого есть лечебные заведения. (шутка. без обид, ок?)"}}
{"actor":{"display_login":"funny-falcon"}}