Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 857 for Nil$ (0.09 sec)

  1. cmd/storage-rest-client.go

    	buf, err := rp.MarshalMsg(nil)
    	if err != nil {
    		return nil, err
    	}
    
    	respBody, err := client.call(ctx, storageRESTMethodReadParts, values, bytes.NewReader(buf), -1)
    	defer xhttp.DrainBody(respBody)
    	if err != nil {
    		return nil, err
    	}
    
    	respReader, err := waitForHTTPResponse(respBody)
    	if err != nil {
    		return nil, toStorageErr(err)
    	}
    
    	rd := msgpNewReader(respReader)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. internal/event/targetlist_test.go

    func (target ExampleTarget) Save(eventData Event) error {
    	return target.send(eventData)
    }
    
    // Store - Returns a nil store.
    func (target ExampleTarget) Store() TargetStore {
    	return nil
    }
    
    func (target ExampleTarget) send(eventData Event) error {
    	b := make([]byte, 1)
    	if _, err := rand.Read(b); err != nil {
    		panic(err)
    	}
    
    	time.Sleep(time.Duration(b[0]) * time.Millisecond)
    
    	if target.sendErr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. internal/s3select/simdj/reader.go

    func (r *Reader) Read(dst sql.Record) (sql.Record, error) {
    	v, ok := <-r.decoded
    	if !ok {
    		if r.err != nil && *r.err != nil {
    			return nil, errJSONParsingError(*r.err)
    		}
    		return nil, io.EOF
    	}
    	dstRec, ok := dst.(*Record)
    	if !ok {
    		dstRec = &Record{}
    	}
    	dstRec.object = v
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	// Close the input.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 30 17:02:22 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. cmd/storage-rest-common_gen.go

    	err = en.Append(0xa1, 0x6d)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.ScanMode)
    	if err != nil {
    		err = msgp.WrapError(err, "ScanMode")
    		return
    	}
    	// write "c"
    	err = en.Append(0xa1, 0x63)
    	if err != nil {
    		return
    	}
    	if z.Cache == nil {
    		err = en.WriteNil()
    		if err != nil {
    			return
    		}
    	} else {
    		err = z.Cache.EncodeMsg(en)
    		if err != nil {
    			err = msgp.WrapError(err, "Cache")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. cmd/net_test.go

    	}{
    		{"localhost", set.CreateStringSet("127.0.0.1"), nil},
    	}
    
    	for _, testCase := range testCases {
    		ipList, err := getHostIP(testCase.host)
    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    			t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr)
    		case testCase.expectedErr.Error() != err.Error():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. cmd/batch-replicate_gen_test.go

    	v := BatchJobReplicateCredentials{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 29 18:27:23 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. cmd/erasure-metadata_test.go

    	}
    
    	testCases := []struct {
    		offset         int64
    		expectedIndex  int
    		expectedOffset int64
    		expectedErr    error
    	}{
    		{0, 0, 0, nil},
    		{1 * humanize.MiByte, 0, 1 * humanize.MiByte, nil},
    		{1 + humanize.MiByte, 1, 0, nil},
    		{2 + humanize.MiByte, 1, 1, nil},
    		// Its valid for zero sized object.
    		{-1, 0, -1, nil},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. tests/associations_belongs_to_test.go

    	if err := DB.Model(&users[0]).Association("Company").Append(&company); err != nil {
    		t.Errorf("Error happened when append company to user, got %v", err)
    	}
    
    	if err := DB.Model(&users[1]).Association("Company").Append(&company); err != nil {
    		t.Errorf("Error happened when append company to user, got %v", err)
    	}
    
    	if users[0].CompanyID == nil || users[1].CompanyID == nil || *users[0].CompanyID != *users[1].CompanyID {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. internal/s3select/parquet/reader.go

    	fr, err := parquetgo.NewFileReader(rsc)
    	if err != nil {
    		return nil, errParquetParsingError(err)
    	}
    
    	return &Reader{Closer: rsc, r: fr}, nil
    }
    
    func (pr *Reader) Read(dst sql.Record) (rec sql.Record, rerr error) {
    	nextRow, err := pr.r.NextRow()
    	if err != nil {
    		if err == io.EOF {
    			return nil, err
    		}
    		return nil, errParquetParsingError(err)
    	}
    
    	kvs := jstream.KVS{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. cmd/bootstrap-peer-server_gen.go

    		err = msgp.WrapError(err, "NEndpoints")
    		return
    	}
    	// write "CmdLines"
    	err = en.Append(0xa8, 0x43, 0x6d, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteArrayHeader(uint32(len(z.CmdLines)))
    	if err != nil {
    		err = msgp.WrapError(err, "CmdLines")
    		return
    	}
    	for za0001 := range z.CmdLines {
    		err = en.WriteString(z.CmdLines[za0001])
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 14:49:49 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top