Chromium Code Reviews

Side by Side Diff: filter/count/rds.go

Issue 2021753002: Change gae to apache 2 license. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package count 5 package count
6 6
7 import ( 7 import (
8 "golang.org/x/net/context" 8 "golang.org/x/net/context"
9 9
10 ds "github.com/luci/gae/service/datastore" 10 ds "github.com/luci/gae/service/datastore"
11 ) 11 )
12 12
13 // DSCounter is the counter object for the datastore service. 13 // DSCounter is the counter object for the datastore service.
(...skipping 67 matching lines...)
81 // datastore.Stop will pass through this function, but, unlike other error 81 // datastore.Stop will pass through this function, but, unlike other error
82 // codes, will be counted as a success. 82 // codes, will be counted as a success.
83 func (e *Entry) upFilterStop(err error) error { 83 func (e *Entry) upFilterStop(err error) error {
84 upErr := err 84 upErr := err
85 if upErr == ds.Stop { 85 if upErr == ds.Stop {
86 upErr = nil 86 upErr = nil
87 } 87 }
88 e.up(upErr) 88 e.up(upErr)
89 return err 89 return err
90 } 90 }
OLDNEW
« no previous file with comments | « filter/count/mod.go ('k') | filter/count/tq.go » ('j') | tools/proto-gae/proto_gae.go » ('J')

Powered by Google App Engine