<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -178,7 +178,7 @@ class ThriftClient
       end
 
       def pack(value)
-        [ type.to_i, fid, ThriftClient::Simple.pack_value(type, value) ].pack(&quot;cna*&quot;)
+        value.nil? ? &quot;&quot; : [ type.to_i, fid, SimpleThrift.pack_value(type, value) ].pack(&quot;cna*&quot;)
       end
     end
 
@@ -240,8 +240,8 @@ class ThriftClient
       end
 
       def self.thrift_method(name, rtype, *args)
-        arg_struct = ThriftClient::Simple.make_struct(&quot;Args__#{name}&quot;, *args)
-        rv_struct = ThriftClient::Simple.make_struct(&quot;Retval__#{name}&quot;, ThriftClient::Simple::Field.new(:rv, rtype, 0))
+        arg_struct = ThriftClient::Simple.make_struct(&quot;Args__#{self.name}__#{name}&quot;, *args)
+        rv_struct = ThriftClient::Simple.make_struct(&quot;Retval__#{self.name}__#{name}&quot;, ThriftClient::Simple::Field.new(:rv, rtype, 0))
         _arg_structs[name.to_sym] = [ arg_struct, rv_struct ]
 
         arg_names = args.map { |a| a.name.to_s }.join(&quot;, &quot;)</diff>
      <filename>lib/thrift_client/simple.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>313eb0e46d90c73e2d37d077860f4dd36797821d</id>
    </parent>
  </parents>
  <author>
    <name>Robey Pointer</name>
    <email>robey@twitter.com</email>
  </author>
  <url>http://github.com/fauna/thrift_client/commit/90801300b558505a1fd43bd334e899212b9ac794</url>
  <id>90801300b558505a1fd43bd334e899212b9ac794</id>
  <committed-date>2009-11-03T15:45:58-08:00</committed-date>
  <authored-date>2009-11-03T15:45:58-08:00</authored-date>
  <message>a couple of bugs.</message>
  <tree>b3a8080a0ef212d977c8d0e0baee6b367ab7467f</tree>
  <committer>
    <name>Robey Pointer</name>
    <email>robey@twitter.com</email>
  </committer>
</commit>
