mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Migrate golanglint-ci config to V2 (#21081)
This commit is contained in:
@@ -147,8 +147,7 @@ func (w *Writer) compress() error {
|
||||
}
|
||||
defer gw.Close()
|
||||
|
||||
var wc io.WriteCloser
|
||||
wc = gzip.NewWriter(gw)
|
||||
var wc io.WriteCloser = gzip.NewWriter(gw)
|
||||
if _, err = io.Copy(wc, r); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -147,7 +147,6 @@ func (r *ReqInfo) PopulateTagsMap(tagsMap map[string]string) {
|
||||
for _, t := range r.tags {
|
||||
tagsMap[t.Key] = t.Val
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// SetReqInfo sets ReqInfo in the context.
|
||||
|
||||
@@ -353,9 +353,9 @@ func (h *Target) startQueueProcessor(ctx context.Context, mainWorker bool) {
|
||||
if count < h.batchSize {
|
||||
tickered := false
|
||||
select {
|
||||
case _ = <-ticker.C:
|
||||
case <-ticker.C:
|
||||
tickered = true
|
||||
case entry, _ = <-globalBuffer:
|
||||
case entry = <-globalBuffer:
|
||||
case entry, ok = <-h.logCh:
|
||||
if !ok {
|
||||
return
|
||||
|
||||
@@ -63,11 +63,11 @@ type XDGSCRAMClient struct {
|
||||
// and authzID via the SASLprep algorithm, as recommended by RFC-5802. If
|
||||
// SASLprep fails, the method returns an error.
|
||||
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error) {
|
||||
x.Client, err = x.HashGeneratorFcn.NewClient(userName, password, authzID)
|
||||
x.Client, err = x.NewClient(userName, password, authzID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
x.ClientConversation = x.Client.NewConversation()
|
||||
x.ClientConversation = x.NewConversation()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user