Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Issue 1750023002: common/lazyslot: Simplify code a little bit. (Closed)

Created:
4 years, 9 months ago by Vadim Sh.
Modified:
4 years, 9 months ago
Reviewers:
dnj, iannucci
CC:
andrew.wang, chromium-reviews, infra-reviews+luci-go_chromium.org, M-A Ruel, tandrii+luci-go_chromium.org, todd
Base URL:
https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

common/lazyslot: Simplify code a little bit. Be more strict about nil return value. BUG=590594 R=dnj@chromium.org, iannucci@chromium.org Committed: https://github.com/luci/luci-go/commit/e3dd046f72f64f6213a504101b26f345834a903f

Patch Set 1 #

Total comments: 10

Patch Set 2 : don't trap panics #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -68 lines) Patch
M common/lazyslot/lazyslot.go View 1 2 chunks +77 lines, -65 lines 0 comments Download
M common/lazyslot/lazyslot_test.go View 1 2 chunks +17 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
Vadim Sh.
Please read lazyslot.go end-to-end (it is only 150 lines with extensive comments). I looked very ...
4 years, 9 months ago (2016-02-29 22:38:28 UTC) #1
Vadim Sh.
Robbie, can you take a look too?
4 years, 9 months ago (2016-03-01 00:27:21 UTC) #3
iannucci
IMO, we really really really shouldn't be eating panics unless it's explicitly the purpose of ...
4 years, 9 months ago (2016-03-01 00:42:41 UTC) #4
Vadim Sh.
https://codereview.chromium.org/1750023002/diff/1/common/lazyslot/lazyslot.go File common/lazyslot/lazyslot.go (right): https://codereview.chromium.org/1750023002/diff/1/common/lazyslot/lazyslot.go#newcode36 common/lazyslot/lazyslot.go:36: // Panics inside Fetcher will be caught and converted ...
4 years, 9 months ago (2016-03-01 01:11:26 UTC) #6
dnj
This seems similar to common/promise. Is there any interest in consolidating? https://codereview.chromium.org/1750023002/diff/1/common/lazyslot/lazyslot.go File common/lazyslot/lazyslot.go (right): ...
4 years, 9 months ago (2016-03-01 01:21:45 UTC) #7
Vadim Sh.
On 2016/03/01 01:21:45, dnj wrote: > This seems similar to common/promise. Is there any interest ...
4 years, 9 months ago (2016-03-01 01:31:28 UTC) #8
Vadim Sh.
On 2016/03/01 01:31:28, Vadim Sh. wrote: > On 2016/03/01 01:21:45, dnj wrote: > > This ...
4 years, 9 months ago (2016-03-01 01:34:55 UTC) #9
iannucci
lgtm
4 years, 9 months ago (2016-03-01 01:57:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1750023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1750023002/20001
4 years, 9 months ago (2016-03-01 02:37:49 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 02:41:47 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/luci-go/commit/e3dd046f72f64f6213a504101b26f345834a903f

Powered by Google App Engine
This is Rietveld 408576698