Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 865 for errC (0.03 sec)

  1. cmd/last-minute_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "Total")
    				return
    			}
    		case "Size":
    			z.Size, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "Size")
    				return
    			}
    		case "N":
    			z.N, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "N")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 17.2K bytes
    - Viewed (0)
  2. cmd/data-usage-cache_gen_test.go

    	v := allTierStats{}
    	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: Fri Oct 04 22:23:33 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. internal/deadlineconn/deadlineconn_test.go

    			return
    		}
    	}()
    
    	c, err := net.Dial("tcp", serverAddr)
    	if err != nil {
    		t.Fatalf("unable to connect to server. %v", err)
    	}
    	defer c.Close()
    
    	_, err = io.WriteString(c, "message one\n")
    	if err != nil {
    		t.Fatalf("failed to write to server. %v", err)
    	}
    	_, err = io.WriteString(c, "message two\n")
    	if err != nil {
    		t.Fatalf("failed to write to server. %v", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Nov 05 18:09:21 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. internal/config/identity/plugin/config.go

    func (a *Args) Validate() error {
    	req, err := http.NewRequest(http.MethodPost, a.URL.String(), bytes.NewReader([]byte("")))
    	if err != nil {
    		return err
    	}
    
    	req.Header.Set("Content-Type", "application/json")
    	if a.AuthToken != "" {
    		req.Header.Set("Authorization", a.AuthToken)
    	}
    
    	client := &http.Client{Transport: a.Transport}
    	resp, err := client.Do(req)
    	if err != nil {
    		return err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/storage-rest-common_gen.go

    	err = en.Append(0x83, 0xa2, 0x69, 0x64)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.DiskID)
    	if err != nil {
    		err = msgp.WrapError(err, "DiskID")
    		return
    	}
    	// write "m"
    	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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. cmd/mrf_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "Bucket")
    				return
    			}
    		case "Object":
    			z.Object, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Object")
    				return
    			}
    		case "VersionID":
    			z.VersionID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "VersionID")
    				return
    			}
    		case "Versions":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. 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)
  8. internal/bucket/replication/destination.go

    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    	if err := e.EncodeElement(d.String(), xml.StartElement{Name: xml.Name{Local: "Bucket"}}); err != nil {
    		return err
    	}
    	if d.StorageClass != "" {
    		if err := e.EncodeElement(d.StorageClass, xml.StartElement{Name: xml.Name{Local: "StorageClass"}}); err != nil {
    			return err
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. cmd/server-rlimit.go

    	if _, maxLimit, err = sys.GetMaxOpenFileLimit(); err != nil {
    		return err
    	}
    
    	if maxLimit < 4096 && runtime.GOOS != globalWindowsOSName {
    		logger.Info("WARNING: maximum file descriptor limit %d is too low for production servers. At least 4096 is recommended. Fix with \"ulimit -n 4096\"",
    			maxLimit)
    	}
    
    	if err = sys.SetMaxOpenFileLimit(maxLimit, maxLimit); err != nil {
    		return err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:09:36 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. cmd/ftp-server-driver.go

    	if err != nil {
    		return 0, nil, err
    	}
    
    	opts := minio.GetObjectOptions{}
    	obj, err := clnt.GetObject(context.Background(), bucket, object, opts)
    	if err != nil {
    		return 0, nil, err
    	}
    	defer func() {
    		if err != nil && obj != nil {
    			obj.Close()
    		}
    	}()
    
    	_, err = obj.Seek(offset, io.SeekStart)
    	if err != nil {
    		return 0, nil, err
    	}
    
    	info, err := obj.Stat()
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top