[bisq-network/bisq] Integrate new protection tools into api's offer & trade services (#5065)

Stan notifications at github.com
Wed Jan 13 23:58:19 CET 2021


@ghubstan commented on this pull request.



> +
+import lombok.extern.slf4j.Slf4j;
+
+import static java.lang.Thread.currentThread;
+
+ at Singleton
+ at Slf4j
+class CoreContext {
+
+    @Inject
+    public CoreContext() {
+    }
+
+    public boolean isApiUser() {
+        String threadName = currentThread().getName();
+        return threadName.equals("BisqDaemonMain") || threadName.contains("grpc");

Resolved by commit 0e779a4

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5065#discussion_r556933195
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210113/c5d18c5c/attachment-0001.htm>


More information about the bisq-github mailing list