Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for len (0.21 sec)

  1. cmd/erasure-common.go

    	resps := make([]chan ReadMultipleResp, len(disks))
    	for i := range resps {
    		resps[i] = make(chan ReadMultipleResp, len(req.Files))
    	}
    	g := errgroup.WithNErrs(len(disks))
    	// Read files in parallel across disks.
    	for index := range disks {
    		index := index
    		g.Go(func() (err error) {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			return disks[index].ReadMultiple(ctx, req, resps[index])
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java

            requireNonNull(pluginBindings);
            final int len = pluginBindings.length;
            if (len < 2 || len % 2 != 0) {
                throw new IllegalArgumentException("Plugin bindings must have more than 0, even count of elements");
            }
    
            HashMap<String, LifecyclePhase> lifecyclePhaseBindings = new HashMap<>(len / 2);
            for (int i = 0; i < len; i = i + 2) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 15:34:45 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. internal/logger/console.go

    		msg = ansiRE.ReplaceAllLiteralString(msg, "")
    		console.json(msg, args...)
    	case quietFlag:
    		if len(msg) != 0 && len(args) == 0 {
    			args = append(args, msg)
    			msg = "%s"
    		}
    		console.quiet(msg+"\n", args...)
    	default:
    		if len(msg) != 0 && len(args) == 0 {
    			args = append(args, msg)
    			msg = "%s"
    		}
    		console.pretty(msg+"\n", args...)
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/rule.go

    )
    
    // validateID - checks if ID is valid or not.
    func (r Rule) validateID() error {
    	if len(r.ID) > 255 {
    		return errInvalidRuleID
    	}
    	return nil
    }
    
    // validateStatus - checks if status is valid or not.
    func (r Rule) validateStatus() error {
    	// Status can't be empty
    	if len(r.Status) == 0 {
    		return errEmptyRuleStatus
    	}
    
    	// Status must be one of Enabled or Disabled
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. clause/where.go

    	if w, ok := clause.Expression.(Where); ok {
    		exprs := make([]Expression, len(w.Exprs)+len(where.Exprs))
    		copy(exprs, w.Exprs)
    		copy(exprs[len(w.Exprs):], where.Exprs)
    		where.Exprs = exprs
    	}
    
    	clause.Expression = where
    }
    
    func And(exprs ...Expression) Expression {
    	if len(exprs) == 0 {
    		return nil
    	}
    
    	if len(exprs) == 1 {
    		if _, ok := exprs[0].(OrConditions); !ok {
    			return exprs[0]
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. cmd/erasure-decode.go

    	bufCount := 0
    	for _, b := range buf {
    		if len(b) > 0 {
    			bufCount++
    		}
    	}
    	return bufCount >= p.dataBlocks
    }
    
    // Read reads from readers in parallel. Returns p.dataBlocks number of bufs.
    func (p *parallelReader) Read(dst [][]byte) ([][]byte, error) {
    	newBuf := dst
    	if len(dst) != len(p.readers) {
    		newBuf = make([][]byte, len(p.readers))
    	} else {
    		for i := range newBuf {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  7. internal/logger/target/console/console.go

    			}
    			if entry.API.Args.VersionID != "" {
    				args = args + ", versionId=" + entry.API.Args.VersionID
    			}
    			if len(entry.API.Args.Objects) > 0 {
    				args = args + ", multiObject=true, numberOfObjects=" + strconv.Itoa(len(entry.API.Args.Objects))
    			}
    			if len(args) > 0 {
    				apiString += "(" + args + ")"
    			}
    		}
    	} else {
    		apiString = "INTERNAL"
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. cmd/data-scanner_test.go

    	}
    	gots, err := item.applyNewerNoncurrentVersionLimit(context.TODO(), objAPI, fivs, es)
    	if err != nil {
    		t.Fatalf("Failed with err: %v", err)
    	}
    	if len(gots) != len(wants) {
    		t.Fatalf("Expected %d objects but got %d", len(wants), len(gots))
    	}
    
    	// Close expiry state's channel to inspect object versions enqueued for expiration
    	close(workers[0])
    	wg.Wait()
    	for _, obj := range expired {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. internal/http/listener.go

    	}
    
    	if len(listeners) == 0 {
    		// No listeners initialized, no need to continue
    		return
    	}
    
    	listener = &httpListener{
    		listeners: listeners,
    		acceptCh:  make(chan acceptResult, len(listeners)),
    		opts:      opts,
    	}
    	listener.ctx, listener.ctxCanceler = context.WithCancel(ctx)
    	if opts.Trace != nil {
    		opts.Trace(fmt.Sprint("opening ", len(listener.listeners), " listeners"))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  10. utils/utils.go

    // FileWithLineNum return the file name and line number of the current file
    func FileWithLineNum() string {
    	pcs := [13]uintptr{}
    	// the third caller usually from gorm internal
    	len := runtime.Callers(3, pcs[:])
    	frames := runtime.CallersFrames(pcs[:len])
    	for i := 0; i < len; i++ {
    		// second return value is "more", not "ok"
    		frame, _ := frames.Next()
    		if (!strings.HasPrefix(frame.File, gormSourceDir) ||
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top